Repository navigation
Show only public apps to anonymous users and ignore apps with invalid URLs - #78
Merged
Merged
Conversation
Spring passes a null Authentication when nobody is logged in. An app with an authority then caused a NullPointerException on every page with a HasLaunchpad controller, e.g. a public landing page.
URI.create throws IllegalArgumentException for a URL without a scheme or with illegal characters. Only MalformedURLException was caught, so one bad URL in the configuration failed every page with a HasLaunchpad controller. Log the ignored app as a single warning without stack trace, since this runs on every request.
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.
#74 and #75 were merged into the
launchpad-service-testsbranch instead ofmain: GitHub did not retarget them after #73 was merged, because that branch was not deleted. This brings both commits tomainunchanged.Authentication) see only apps without anauthorityinstead of causing aNullPointerException(Show only apps without an authority to anonymous users #74)IllegalArgumentException(Ignore launchpad apps whose URL cannot be built #75)