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

no path allowed in endpoint http://my-ip-address:9000/xxx/ #1476

Closed
AnzhiZhang opened this issue Jul 27, 2023 · 1 comment
Closed

no path allowed in endpoint http://my-ip-address:9000/xxx/ #1476

AnzhiZhang opened this issue Jul 27, 2023 · 1 comment

Comments

@AnzhiZhang
Copy link

Hi,

I'm trying to connect to remote minio using java sdk and got java.lang.IllegalArgumentException: no path allowed in endpoint http://my-ip-address:9000/xxx/

The reason is that HttpUtils class:

  public static void validateUrl(HttpUrl url) {
    if (!url.encodedPath().equals("/")) {
      throw new IllegalArgumentException("no path allowed in endpoint " + url);
    }
  }

I'm using nginx and have put minio under a /xxx/ path, is there a particular reason for this restriction, and if not is it possible to remove it?

@balamurugana
Copy link
Member

As per S3 specification, path in the endpoint is not supported.

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

2 participants