-
Notifications
You must be signed in to change notification settings - Fork 62
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
How to download a file from a content store #16
Comments
@estebes is there anymore stack trace than that? What Spring Content Module(s) are you using? Spring Content for JPA? And are you also using Spring Content REST? A small project that reproduces this issue would be very helpful as well. You could also cross reference your project against the relevant example in github.com/paulcwarren/spring-content-examples |
Full log - https://pastebin.com/1rtRt1QR Dependencies Html code I'll try to create a small project reproducing the issue. |
A project may not be necessary @estebes. I have a theory. When you click that 'download' I think your browser might not be sending an Line 122 in 949a73d
So I wonder what browser you are using and whether you could check the request it is sending. Look forward to hearing from you. |
Yeah, I think that is what is going on. I just managed to reproduce that error in a unit tests anyways. Your context will be helpful but i am going to go ahead and fix this as it is a bug anyways. |
So i just tried to use firefox instead of chrome and it actually works on firefox althoughit ignores the .pdf extension and downloads a .txt but yes what you described seems to be what is happening. |
I added a candidate fix for this issue in this commit:- Can you switchover to 0.0.8-SNAPSHOT and give it a whirl. If it fixes the issue then I'll cut a release. |
Perfect fix. Works on both chrome and firefox. I think i can now close this issue. Thank you very much for the help. |
+1 |
When i try to download a file from the server onto the disk i get an error saying server problem and in the server log i get "java.lang.UnsupportedOperationException: null
"
The text was updated successfully, but these errors were encountered: