-
Notifications
You must be signed in to change notification settings - Fork 4
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
StillImageRepresentation uploaded by knora-xml-import cannot be displayed in Salsah 1.5 #21
Comments
@lrosenth could you maybe have a look at this? (not very urgent though, but I'm planning to use the library for a full data import which will include images.) |
Could you maybe try the same thing with https://github.com/dasch-swiss/knora-api/releases/tag/v10.1.1 and not After this commit, there where some changes involving Knora-Sipi integration. It would be good to know if this issue was introduced recently or if it was there for a longer time. |
And thanks for reporting :-) |
You were right. With this version of Knora, I am able to display a |
So the question is, was a bug introduced in |
@benjamingeer @tobiasschweizer could you maybe take a look at this issue? In recent commits of |
This comment has been minimized.
This comment has been minimized.
What happens if you access the resource with |
I guess v2 allows for MIME types that v1 does not support:
|
Maybe |
I think I had this problem too, and I solved it this way: https://github.com/dasch-swiss/knora-api/pull/1233/files#diff-902f74f03286363fd8a94360df6c4753R109 |
@subotic I have finally tested the |
@benjamingeer so PR #1233 solves this issue? it should be in a coming release of |
@loicjaouen I don't know, I haven't looked at this issue myself. dasch-swiss/dsp-api#1233 is waiting for dasch-swiss/sipi#309. |
If you need that urgently, why don't you just add the missing mimetype as suggested in #21 (comment)? |
Using knora on
develop
and running theknora-xml-import
script with images as described in the doc results in an error in Salsah 1.5 and Knora API.If a resource is a subclass of
knora-base:StillImageRepresentation
, even though the import withknora-xml-import
went smoothly, I cannot display the resource at all. I got a500 Internal Server Error
and if a try to display the resource in the API (using http://0.0.0.0:3333/v1/resources/http%3A%2F%2Frdfh.ch%2F00FE%2FuYkYMpHoRfe7O29TPBb-BA), then I got the following error:{"status":4,"error":"org.knora.webapi.InconsistentTriplestoreDataException: Unknown MIME type: image/jpx"}
But I can display without any problem a resource if it is not a a subclass of
knora-base:StillImageRepresentation
.It can be easily reproduced using the
test-data.xml
.The text was updated successfully, but these errors were encountered: