Skip to content

Show only public apps to anonymous users and ignore apps with invalid URLs - #78

Merged
derTobsch merged 2 commits into
mainfrom
anonymous-users-and-invalid-urls
Nov 20, 2026
Merged

derTobsch merged 2 commits into
mainfrom
anonymous-users-and-invalid-urls

Conversation

@derTobsch

Copy link
Copy Markdown
Contributor

#74 and #75 were merged into the launchpad-service-tests branch instead of main: GitHub did not retarget them after #73 was merged, because that branch was not deleted. This brings both commits to main unchanged.

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.
@derTobsch
derTobsch merged commit 77e7c0b into main Nov 20, 2026
1 check passed
@derTobsch
derTobsch deleted the anonymous-users-and-invalid-urls branch November 20, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant