Skip to content

Fix exception when the scheme is missing in endpointUrl for S3#7129

Merged
fjy merged 2 commits intoapache:masterfrom
jihoonson:missing-scheme
Feb 25, 2019
Merged

Fix exception when the scheme is missing in endpointUrl for S3#7129
fjy merged 2 commits intoapache:masterfrom
jihoonson:missing-scheme

Conversation

@jihoonson
Copy link
Copy Markdown
Contributor

URI.create("127.0.0.1:8000").getScheme() throws an exception of java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: 127.0.0.1:8000 and URI.create("localhost:8000").getScheme() returns localhost.

The order to look for the protocol is supposed to be:

  1. the scheme in endpointUrl
  2. protocol in AWSClientConfig
  3. default (https)

@jihoonson jihoonson added the Bug label Feb 22, 2019
@jihoonson jihoonson added this to the 0.14.0 milestone Feb 22, 2019
@fjy fjy merged commit 9a06655 into apache:master Feb 25, 2019
jon-wei pushed a commit to jon-wei/druid that referenced this pull request Feb 28, 2019
…e#7129)

* Fix exception when the scheme is missing in endpointUrl for S3

* add null check
fjy pushed a commit that referenced this pull request Mar 1, 2019
#7166)

* Fix exception when the scheme is missing in endpointUrl for S3

* add null check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants