Skip to content

MINIO_BROWSER_REDIRECT_URL Inspect Object not working  #3030

@LexPanov

Description

@LexPanov

MinIO configured behind reverse proxy with MINIO_BROWSER_REDIRECT_URL using incorrect URL for Inspect Object

image

Expected Behavior

Correct API URL for Inspect Object

Current Behavior

Incorrect API URL for Inspect Object because of
https://github.com/minio/console/blob/a6eee73c11ac9792dea9a5f4fcdd58a51cff3e92/portal-ui/src/screens/Console/Tools/Inspect.tsx#L149

Possible Solution

Maybe, it will work if this line will be like this

https://github.com/minio/console/blob/a6eee73c11ac9792dea9a5f4fcdd58a51cff3e92/portal-ui/src/api/index.ts#L4

    const urlOfInspectApi = `${new URL(document.baseURI).pathname}api/v1/admin/inspect?volume=${volume}&file=${file}&encrypt=${isEncrypt}`;

Steps to Reproduce (for bugs)

  1. MinIO Console behind reverse proxy at $HOST/minio/ui/
  2. MINIO_BROWSER_REDIRECT_URL="$HOST/minio/ui/"
  3. Open "test" bucket at $HOST/minio/ui/browser/test
  4. Select file
  5. Right panel -> Actions -> Inspect

Context

Issue #2774
PR #2818

Your Environment

  • MinIO version used (minio --version): RELEASE.2023-08-31T15-31-16Z (commit-id=e47e625f73bb1c9672e6c8e4c3b3f9a0e93423a0)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions