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

Misprocessed URL in Cli Dashboard #364

Closed
zen-fge opened this issue Feb 17, 2021 · 3 comments
Closed

Misprocessed URL in Cli Dashboard #364

zen-fge opened this issue Feb 17, 2021 · 3 comments
Labels
bug Bugs & errors found in Reposilite

Comments

@zen-fge
Copy link

zen-fge commented Feb 17, 2021

In my environnement, where Reposilite is behind a reverse proxy with a context root path, Cli Dashboard didn't work because there is a small bug:

    if (origin.endsWith('/')) {
      origin = origin.substring(1)
    }

In my case, orign ends with a '/' so the substring is invalid and lead to break the websocket url.

@dzikoysk dzikoysk added the bug Bugs & errors found in Reposilite label Feb 17, 2021
@dzikoysk
Copy link
Owner

By saying context root path you mean the base path? :) Could you provide your custom base path, it might be useful during debug.

@zen-fge
Copy link
Author

zen-fge commented Feb 18, 2021

Yes, you are right, I mean base path :-)
My configuration starts with:

hostname: 0.0.0.0
port: 8081
basePath: /reposilite/

My basePath ends with a '/' I've tried to remove it but when I restart the configuration is automatically modified and the ending slash come back again

@dzikoysk
Copy link
Owner

dzikoysk commented Feb 21, 2021

I've made some fixes related to custom base path, check out the 2.9.14 2.9.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs & errors found in Reposilite
Projects
None yet
Development

No branches or pull requests

2 participants