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
fix(server): invalid base url #6881
Conversation
This fixes an issue where the Base URL is not properly formed for the purposes of static asset acquisition. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
ArtifactsThese changes are published for testing on Buildkite, DockerHub and GitHub Container Registry. Docker Container
|
WalkthroughThe update primarily focuses on enhancing the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- internal/server/template.go (1 hunks)
Additional comments: 2
internal/server/template.go (2)
- 71-71: The reassignment of
baseURL
toctx.RootURLSlash().String()
is done before retrieving the session provider. This ensures thatbaseURL
is set even if there's an error in getting the session provider, which is a good practice for ensuring thatbaseURL
is always defined. However, it's important to verify that this reordering does not impact any logic that depends on thebaseURL
being set after the provider is retrieved.- 73-73: Retrieving the session provider and setting
domain
andrememberMe
based on the provider's configuration is crucial for the correct operation of templated files. This logic appears to be unchanged, but it's important to ensure that the provider's configuration is always correctly applied. If there are any known issues with the session provider retrieval or configuration application, they should be addressed.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6881 +/- ##
==========================================
- Coverage 73.55% 73.55% -0.01%
==========================================
Files 345 345
Lines 29508 29503 -5
Branches 839 839
==========================================
- Hits 21706 21702 -4
+ Misses 6944 6943 -1
Partials 858 858
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This fixes an issue where the Base URL is not properly formed for the purposes of static asset acquisition.
Summary by CodeRabbit
baseURL
in server templates for enhanced performance.