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

unable to download certain filetypes #342

Open
bobweston opened this issue Oct 6, 2016 · 5 comments
Open

unable to download certain filetypes #342

bobweston opened this issue Oct 6, 2016 · 5 comments

Comments

@bobweston
Copy link

bobweston commented Oct 6, 2016

I'm trying to distribute files to some folks using S3auth. (I own the rights to the files, by the way). If the file is in zip format, it works as expected. But it won't prompt to download doc, docx and excel files.

edit: It looked like you folks had fixed it for a brief time yesterday. But it is now no longer working again.

Is this an expected behavior? Can that be changed?

I'm currently able to just link to those files in my s3 bucket and users are prompted to download them. But once I put s3auth in front of the bucket, I get a java.io exception.

I love the app/service and appreciate your feedback.

The error I am seeing is (in part) below:

java.io.IOException: failed to fetch /projects/2016/release.docx from 'my.domain.com' (key=XXXXXXXXXXXXXXX): ["'projects/2016/release.docx': Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXXXXX)", "'project/2016/release.docx': Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXXXXXXXXX)", "'projects/2016/release.docx+suffix': Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXXXXXXX)", "'projects/2016/release.docx+suffix': Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXXXXXX)"]
    at com.s3auth.hosts.DefaultHost.fetch_aroundBody2(DefaultHost.java:228)
    at com.s3auth.hosts.DefaultHost$AjcClosure3.run(DefaultHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:212)
@bobweston
Copy link
Author

bobweston commented Oct 7, 2016

I noticed that if I add the user to a group with higher permissions, s3Auth now displays an autogenerated page that makes it seem that s3auth sees excel files as a directory, not an file.

This is what I see after clicking on the link to an excel file:

This is page is auto-generated by s3auth.com.

The prefix is: projects/2016/xxxxxxxx.xlsx/
Name Size (bytes)

@davvd
Copy link

davvd commented Oct 13, 2016

@yegor256 please take a look at it and dispatch (see par.21)

@yegor256
Copy link
Owner

@bobweston are you sure that that .xlsx file is not a directory technically? It seems that it really is. Can you give me access there?

@bobweston
Copy link
Author

It most definite;y was not a directory. I uploaded the Excel file myself. I've found an alternative solution to what we were trying to use this for though.

I appreciate your attempting to help.

@yegor256
Copy link
Owner

@bobweston I'm sorry this bug is still not fixed. We didn't have enough funds/time to work on the project. However, recently we received some donations from our grateful users and will continue to fix issues and introduce new features. Would be great if you can also donate -- to help us move forward faster. Here is the link: https://www.0crat.com/contrib/C3RP1J1CH

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

3 participants