question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Anonymous user is send whereas it should not

See original GitHub issue
Overview of the issue

The pagination elements generated for entities are not working (tested only with ng2)

Reproduce the error
  • Create an app
  • Generate an entity with pagination “entity”
  • create many elements (or change pagination default size)
  • try to use the pagination buttons in the generated component “entity.component.html”

=> The buttons don’t work as expected.

In comparison, the pagination elements in the Audit admin view work ok.

Suggest a Fix

I think the paginated elements should be changed in the entity generator from

<div class="text-xs-center" *ngIf="jobs && jobs.length">
            <jhi-item-count [page]="page" [total]="queryCount" [itemsPerPage]="itemsPerPage"></jhi-item-count>
            <ngb-pagination [collectionSize]="totalItems" [(page)]="page" (pageChange)="loadPage(page)"></ngb-pagination>
        </div>

to

<div class="text-xs-center" *ngIf="jobs && jobs.length">
            <jhi-item-count [page]="page" [total]="queryCount" [itemsPerPage]="itemsPerPage"></jhi-item-count>
            <ngb-pagination [collectionSize]="totalItems" [(page)]="page" [pageSize]="itemsPerPage"  (pageChange)="loadPage(page)"></ngb-pagination>
        </div>
JHipster Version(s)

JHipster v.3.12.2

JHipster configuration

.yo-rc.json

{                                                              
  "generator-jhipster": {                                      
    "jhipsterVersion": "3.12.2",                               
    "baseName": "optone",                                      
    "packageName": "nc.opt.template",                          
    "packageFolder": "nc/opt/template",                        
    "serverPort": "8080",                                      
    "authenticationType": "jwt",                               
    "hibernateCache": "ehcache",                               
    "clusteredHttpSession": false,                             
    "websocket": false,                                        
    "databaseType": "sql",                                     
    "devDatabaseType": "h2Disk",                               
    "prodDatabaseType": "postgresql",                          
    "searchEngine": false,                                     
    "messageBroker": false,                                    
    "buildTool": "maven",                                      
    "enableSocialSignIn": false,                               
    "jwtSecretKey": "70a20309af8c06c2652019d9bf7570c92df7de9e",
    "useSass": true,                                           
    "clientPackageManager": "yarn",                            
    "applicationType": "monolith",                             
    "clientFramework": "angular2",                             
    "testFrameworks": [                                        
      "gatling"                                                
    ],                                                         
    "jhiPrefix": "jhi",                                        
    "enableTranslation": true,                                 
    "nativeLanguage": "fr",                                    
    "languages": [                                             
      "fr"                                                     
    ]                                                          
  }                                                            
}          
Browsers and Operating System

OS: Windows 10 Pro Browser: Chrome v55.0.2883.87 m (64-bit)

[x] Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
gmarzioucommented, Feb 14, 2017

I will make a fix to remove this filter for anonymous user, and we will change the back code so the client don’t receive at all this anonymous user.

If you do it on server side, don’t forget to change also the angular 1 code.

0reactions
jduboiscommented, Feb 21, 2017

Closing as #5203 is merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

CWSII - IBM
CWSII0207I: The bus {0} authenticated an anonymous client. Explanation, A client that has not provided credentials has successfully authenticated to the bus.
Read more >
Flow not sending email messages from anonymous users
I have a Flow which should send an email with the contents of a Form to fellow staff members as soon as the...
Read more >
Firebase - Should I stop using Anonymous Auth in my specific ...
Possible solution: I know that you can not bulk-delete anonymous users, but, if I copy all the user ID's (all anonymous) into a...
Read more >
Siebel Inbound Web Services integration scenario that uses ...
SBL-SSM-00006: Error while sending message to server.)​​ (5) The external application receives the HTTP 500 error and retries the SOAP Call again ...
Read more >
status messages of contact module not displayed while ...
yeah other status messages are being displayed while logged in as anonymous user. drupal 6.1. what shali i do to debug this problem?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found