[
https://issues.apache.org/jira/browse/HADOOP-17641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17325942#comment-17325942
]
Steve Loughran commented on HADOOP-17641:
-----------------------------------------
I've got the PR merged in with a UUID in name. So it verifies that DNS
resolution takes place and the failure is mapped to IllegalArgumentException.
If someone makes up an account with the UUID, well, it'd take maliciousness to
do it now
> ITestWasbUriAndConfiguration.testCanonicalServiceName() failing now
> mockaccount exists
> --------------------------------------------------------------------------------------
>
> Key: HADOOP-17641
> URL: https://issues.apache.org/jira/browse/HADOOP-17641
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/azure, test
> Affects Versions: 3.3.0, 3.2.1
> Reporter: Steve Loughran
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The test ITestWasbUriAndConfiguration.testCanonicalServiceName() is failing
> in its intercept
> [ERROR] ITestWasbUriAndConfiguration.testCanonicalServiceName:656 Expected
> a java.lang.IllegalArgumentException to be thrown, but got the result: :
> "20.38.122.132:0"
> Root cause is: the mock account in
> AzureBlobStorageTestAccount.MOCK_ACCOUNT_NAME is
> "mockAccount.blob.core.windows.net" and *someone has created that account*
> This means it resolves
> nslookup mockAccount.blob.core.windows.net
> Server: 172.18.64.15
> Address: 172.18.64.15#53
> Non-authoritative answer:
> mockAccount.blob.core.windows.net canonical name =
> blob.dsm08prdstr02a.store.core.windows.net.
> Name: blob.dsm08prdstr02a.store.core.windows.net
> Address: 20.38.122.132
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]