HADOOP-15710. ABFS checkException to map 403 to AccessDeniedException.#2648
Conversation
This maps both 401 and 403 to AccessDeniedException. The test does not work, because even though I'm removing permissions from the file and parent dir, it's still opening. Change-Id: Ieb65eb6bb057085b312fb1582eaf65c55ef2e634
mehakmeet
left a comment
There was a problem hiding this comment.
production code looks good but the test might need another commit as mentioned by you above.
...adoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsRestOperationException.java
Outdated
Show resolved
Hide resolved
...adoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsRestOperationException.java
Outdated
Show resolved
Hide resolved
Change-Id: I5fa1a1f5da7f581bd22571f2ce1f1c8e5b896398
|
Updated with the other place this exception is looked for. But I don't have the auth setup to run those tests (I need to spend another few hours trying to get them). The new test is failing, that is, I can remove permissions from a file and then read the results. That shouldn't happen unless those permissions aren't actually being enforced on my store |
Change-Id: I55f45d7bdb2861b21a96ae19699da64438921abf
|
logs from failure of latest code |
|
🎊 +1 overall
This message was automatically generated. |
|
Yes, pretty weird that you can still read the file with no permissions, maybe add to see if the permissions are actually getting set or not too. Edit: I added this before intercept() and got "---------" returned. |
Needed to make the translation method static and package scoped Change-Id: I1120bac9d271f224ef117d49ce82fd61e91e8149
|
🎊 +1 overall
This message was automatically generated. |
|
UT's is good option here. +1. |
|
thanks. merging. |
#2648) When 403 is returned from an ABFS HTTP call, an AccessDeniedException is raised. The exception text is unchanged, for any application string matching on the getMessage() contents. Contributed by Steve Loughran. Change-Id: I519d50ccd657968fd8ee72d132518099de901e15
…iedException. (apache#2648) When 403 is returned from an ABFS HTTP call, an AccessDeniedException is raised. The exception text is unchanged, for any application string matching on the getMessage() contents. Contributed by Steve Loughran. Change-Id: I519d50ccd657968fd8ee72d132518099de901e15
This maps both 401 and 403 to AccessDeniedException.
The test does not work, because even though I'm removing permissions
from the file and parent dir, it's still opening.
Tested: Azure cardiff