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

Easy fix for getObjectInfo bug #158

Open
rewb0rn opened this issue Sep 9, 2019 · 0 comments
Open

Easy fix for getObjectInfo bug #158

rewb0rn opened this issue Sep 9, 2019 · 0 comments

Comments

@rewb0rn
Copy link

rewb0rn commented Sep 9, 2019

Hi,

we found that getObjectInfo() is not checking for 403 error code, which can be returned instead of 404 when a file does not exist. This produces error logs although it is expected behavior. The fix is easy, please change this

if ($rest->error === false && ($rest->code !== 200 && $rest->code !== 404))

to this:

if ($rest->error === false && ($rest->code !== 200 && $rest->code !== 403 && $rest->code !== 404))

in getObjectInfo() (line 866 in current version)

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

1 participant