Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing test for Java Long.MAX_VALUE in angular-ui service #16056

Open
KarlDegen opened this issue Mar 6, 2024 · 0 comments
Open

Missing test for Java Long.MAX_VALUE in angular-ui service #16056

KarlDegen opened this issue Mar 6, 2024 · 0 comments
Labels
on-jira triaged Issues reviewed by a dev and considered valid. Will be added in Jira.

Comments

@KarlDegen
Copy link

https://github.com/eugenp/tutorials/blame/5af7b8c289f3e4e2322fe4025cce9cbdaa24a6c1/spring-security-modules/spring-security-oauth2-bff/angular-ui/src/app/auth/user.service.ts#L66

My setup: Windows 10 64bit on Intel, JRE Azul 21 64bit

The current expression on Line 66

if (!!user.exp) {...}

is also true, if the resource server is sending Java Long.MAX-VALUE (9223372036854776000L) as substitute for 'no date', what also exceeds JavaScript's Number.MAX_SAFE_INTEGER

That leads into the browser recalling /bff/api/me over and over again without the wanted delay and max CPU consumption

@apeterlic apeterlic added the triaged Issues reviewed by a dev and considered valid. Will be added in Jira. label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-jira triaged Issues reviewed by a dev and considered valid. Will be added in Jira.
Projects
None yet
Development

No branches or pull requests

3 participants