You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2019/07/31 11:47:00 UTC
[jira] [Resolved] (HADOOP-16464) S3Guard in auth mode doesn't raise
AccessDeniedException on read of 0-byte file
[ https://issues.apache.org/jira/browse/HADOOP-16464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran resolved HADOOP-16464.
-------------------------------------
Resolution: Won't Fix
I don't see this being fixable. The whole point of auth mode is we don't need to go near the store, and for a zero byte file, we can just return -1, always.
Closing as a WONTFIX; if people find this in the wild then we can point them as this JIRA
> S3Guard in auth mode doesn't raise AccessDeniedException on read of 0-byte file
> -------------------------------------------------------------------------------
>
> Key: HADOOP-16464
> URL: https://issues.apache.org/jira/browse/HADOOP-16464
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.3.0
> Reporter: Steve Loughran
> Priority: Minor
>
> This falls out of auth mode knowing the length of a file and skipping any S3 checks: it is not an error to read a 0-byte file, regardless of the readability of the file.
> * there's no check in open()
> * and read() just returns -1.
> I don't see if that is fixable, or if it merits. Maybe just include in the release notes
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org