uzh / marugoto

Marugoto: eLearning Framework for Story Telling
GNU General Public License v2.0
8 stars 6 forks source link

Notebook PDF is not working on the test system #52

Closed christian-bernet closed 5 years ago

christian-bernet commented 5 years ago

From the frontend on the test system there is a wrong url called. It has /resources/ before, which is wrong. https://marugoto.s3it.uzh.ch/resources/api/notebook/pdf/current

Please change it.

christian-bernet commented 5 years ago

route is also false for downloading pdf and zips on games screen. please fix it there also.

zlaxi commented 5 years ago

https://github.com/uzh/marugoto-frontend/commit/d482b7b3b16e7fd50addd7f51e443594ed189108

zlaxi commented 5 years ago

https://github.com/uzh/marugoto-frontend/commit/d482b7b3b16e7fd50addd7f51e443594ed189108

christian-bernet commented 5 years ago

in the game screen its still not working!

christian-bernet commented 5 years ago

org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation

http response HTTP Status 406 ? Not Acceptable Type Status Report

Description The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.

Apache Tomcat/9.0.13

=> waiting that frontend is ready for merge to master!

christian-bernet commented 5 years ago

from Martin: on Safari we can not download notebook pdf in the game

christian-bernet commented 5 years ago

If we have an image in the pdf, then we get an exception org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation

I suspect, that the path of temp folder and resource folder are not correctly set. I changed them in home/ubuntu/lives-in-transit/application-production.properties After the new dockerimage has build and rund it should be fine!

christian-bernet commented 5 years ago

OK. It is working now.

@martindusinberre from now the notebook pdf and the zip from from the game screen will work. Please try. :)

martindusinberre commented 5 years ago

Yes, I was able to download the notebook PDF mid-game just now using the download icon. Thanks!