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

Issue with URL encoding (%2F vs /) causing 404 error after logout in Harbor #21254

Open
SterhLight opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@SterhLight
Copy link

Description

Steps to Reproduce

  1. Log in to Harbor and navigate to a page with a URL containing %2F (e.g., artifacts or repositories).
    Example:
https://<your-harbor-url>/harbor/projects/11/repositories/redis-cr-template%2Fcharts%2Fredis-cr-template/artifacts-tab
  1. Log out from this page.
  2. Log back in.

Expected Behavior

After re-login, the user should return to the same page without errors.

##Actual Behavior
After re-login, the following error is displayed:

404 Page not found
Redirecting to main page in 5 seconds...

The path changes from:

.../redis-cr-template%2Fcharts%2Fredis-cr-template/...

to:

.../redis-cr-template/charts/redis-cr-template/...

Additional Context

  • Harbor Version: v2.9.0 & v2.10.0
  • Deployment Method: Kubernetes / Docker-compose / Offline installer

Labels

Bug, UI/Redirects, Authentication

Why this issue is important

This issue impacts user experience, as it prevents users from smoothly navigating back to their previous location after logging out and re-login. It also suggests inconsistent handling of URL encoding within Harbor. And it also spams the monitoring system, the mood for reaction to errors of the response code different from 200.

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

No branches or pull requests

1 participant