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

MINIO_BROWSER_REDIRECT_URL Subpath not working #2774

Closed
vmire opened this issue Apr 12, 2023 · 8 comments · Fixed by #2818
Closed

MINIO_BROWSER_REDIRECT_URL Subpath not working #2774

vmire opened this issue Apr 12, 2023 · 8 comments · Fixed by #2818
Assignees
Labels
bug this needs to be fixed needed High Priority

Comments

@vmire
Copy link

vmire commented Apr 12, 2023

Some url generated by the console does not use subpath

Similar issue was resolved last year for download link ( #2272 ).
This subpath bug reappears in recent versions for bucket list.

Minio configured with :
MINIO_BROWSER_REDIRECT_URL: 'http://localhost:8080/minio/'

Generated API URL :
http://localhost:8080/api/v1/buckets

instead of http://localhost:8080/minio/api/v1/buckets

@goganchic
Copy link

In RELEASE.2023-03-22T06-36-24Z all urls worked as expected, so it's broken in RELEASE.2023-03-24T21-41-23Z or RELEASE.2023-04-07T05-28-58Z.

@mari-arondeus
Copy link

FWIW version 2023-03-24T21:41:23Z appears to be working for me, but I see the same issue with subpath redirect with any version newer than that.

@maab
Copy link

maab commented Apr 26, 2023

Same here, thank you @vmire for opening and describing this issue. 👍

@mskyttner
Copy link

After upgrading to latest (to get ftp/sftp) today and running into this issue, I was able to roll back to recover a working instance with a reverse proxied console UI (proxied by nginx, using quay.io/minio/minio:RELEASE.2023-03-24T21-41-23Z).

Thanks for listing the latest stable version that doesn't break reverse-proxied instances @Cassidy3 @goganchic, worth a lot!

@mari-arondeus
Copy link

FWIW I'm using HAProxy for subpath redirect. Same issue as the Nginx users here.

@itzsimpl
Copy link

Same thing with traefik; 2023-03-24T21:41:23Z seems to be the last working version.

@swoiow
Copy link

swoiow commented May 15, 2023

Hi all. Yes, actually i met the same issue too. And let me show more details about this issue.

  • Nginx
  • docker
    • minio:latest tag with hash id (3067751629ce)
    • image label "io.buildah.version": "1.27.3", "release": "RELEASE.2023-05-04T21-44-30Z",

As same as vmire said, i config the MINIO_BROWSER_REDIRECT_URL in docker env, and also config the nginx, so that i want to mount minio under a domain with a subpath, just like vmire said.
But, the frontend not reference the MINIO_BROWSER_REDIRECT_URL, when call the api.

FYI, when i used another version too, that version is 2022-11-17T23:20:09Z, that released was no this issue, and work fine.

@underscoredje
Copy link

underscoredje commented May 17, 2023

Hi all.

Same here.
Tested with:

  • docker / nginx
  • k8s / traefik2

The last working version is RELEASE.2023-03-24T21-41-23Z as @Cassidy3 said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug this needs to be fixed needed High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants