Repository navigation
Backend: close the BuildCloud porting gaps (#6353) - #6359
Merged
Merged
Conversation
- Accept remember-me authentication at /oauth2/authorize and device verification, as Spring Authorization Server does; request-borne credentials (bearer, basic, API keys) stay refused. - cn1.scheduler.enabled=false keeps every scheduled job from starting. - HttpStatusEntryPoint answers with Spring Boot's JSON error body. - Read server.servlet.session.timeout/cookie.* and spring.session.store-type when the cn1.session.* key is unset; report unread server.servlet.session.*. - The build writes JSON codecs for session attribute types (setAttribute, getAttribute(name, Class)), and constructor results are typed in the scan; HttpSession.getAttribute(name, Class) reads any store back into the class. - Embedded static assets go up to 32 MiB, split into 1 MiB part classes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Scheduler: a disabled scheduler still gives jobs their executors, so a manual trigger runs one as documented; test covers it. - JsonCallSites: type only constructors that follow a NEW (not super/this), skip anonymous and local classes, and register session attribute classes for writing as well as reading. - HttpStatusEntryPoint: say plainly the body differs from Spring on purpose. - HttpServer: reasonPhrase no longer swallows reason()'s comment. - Sessions: Duration digits capped against overflow, reject a trailing T, name the Spring key in validation errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…metable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server runtime builds against vm/JavaAPI, whose Class.cast returns Object; cast after the isInstance check instead, as Json.convert does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Developer Guide build artifacts are available for download from this workflow run:
Developer Guide quality checks:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6353. Fixes the six Backend gaps found while porting a Spring Boot service.
/oauth2/authorize. A remember-me login counts as signed in at the authorize and device-verification endpoints, as it does in Spring Authorization Server, so a silentprompt=nonerefresh gets a code after the session has expired. Bearer, Basic and API-key credentials are still refused.cn1.scheduler.enabled=falsestops every scheduled job from starting. Jobs are still listed under/manage/jobs, a manual trigger still runs one, and a manual run never puts a held-back job back on its timetable.HttpStatusEntryPointanswers with{"timestamp","status","error","path"}instead of an empty body. This differs from Spring on purpose, because a Codename OneRequestBuilderneeds a body to report the error.server.servlet.session.timeout(Boot duration formats),server.servlet.session.cookie.name/.same-site/.secureandspring.session.store-typeare read when the matchingcn1.session.*key is unset. Any otherserver.servlet.session.*key gets a warning at start-up.HttpSession.setAttribute, and for the class passed to the newgetAttribute(name, Class). Nothing is a build error, because the memory store holds any object.Json.write(new Foo(..))fails the build whenFoocan't be written as JSON. Before, that only failed at run time.The developer guide pages for sessions, scheduling, security and views are updated to match.
Two adversarial review rounds over the whole branch found these, all fixed:
Json.write.Tests: targeted backend and build-engine suites pass (389 tests). The quality gate passes: SpotBugs, PMD and Checkstyle on backend; SpotBugs on build-engine.
🤖 Generated with Claude Code