euphorie / Euphorie

Euphorie is a tool for risk assessment
https://pythonhosted.org/Euphorie/
GNU General Public License v2.0
12 stars 6 forks source link

Original image returns 405 (Method Not Allowed) when accessed #38

Closed frontendr closed 12 years ago

frontendr commented 12 years ago

When an image is added to a page there is both a thumbnail and an original key.

The thumbnail can be reached but when the original url of the image is used a 405 (Method Not Allowed) is thrown.

For example, the following data is returned at "Fysieke belasting en beeldschermwerk"

array (size=3)
  'caption' => string 'Duwen en trekken en sjorren kunnen een zware fysieke belasting vormen.' (length=70)
  'thumbnail' => string 'https://api.instrumenten.rie.nl/nl/mkb/algemene-mkb-rie/5/@@images/da1e63d0-7df4-4071-b3e3-1ffa111fe3f5.jpeg' (length=108)
  'original' => string 'https://api.instrumenten.rie.nl/nl/mkb/algemene-mkb-rie/5/@@download/images/Duwen en trekken.jpg' (length=96)

The thumbnail works, but the original gives the mentioned error.

wichert commented 12 years ago

A related issue here is that the URL should be using the client base URL to base image URLs, which is not necessarily the same as the API base URL.

wichert commented 12 years ago

Please note that this fix has not been deployed yet.