Anonymous user is send whereas it should not
See original GitHub issueOverview 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:
- Created 7 years ago
- Comments:10 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you do it on server side, don’t forget to change also the angular 1 code.
Closing as #5203 is merged