OslcJsonLdProvider never called when trying to write to 'application/ld+json' #44
Comments
Indeed. I can confirm that json-ld is not handled in the most basic cases. |
hahaha, @jadelkhoury I have never hit this bug because I had #22 applied from the start in my case. |
Until we have #22 in place, can we fix this? if you give me a rundown on what [damage :-)] you did, I can try to fix it in comming days. |
@cedric780 thanks for reporting the bug and getting to the cause of it @jadelkhoury I still believe #22 is the best fix for it, now we have 2 reasons to apply it. @jamsden Jad is worried about accidentally introducing an unwanted side effect that may introduce some incompat. |
I am mainly worried about introducing such a change just before the 2.4.0 release. If we add #22 after the release, it gives us a better chance to run it for some time. |
@jadelkhoury it's not really that I did something [damage], but I just forgot to add a new argument to the inner BTW, @cedric780 I am trying to introduce #9 which adds support for N-Triples and any other serialisation format as supported by Jena but there has been little push for it. If you are interested to try it out, I can help you with any issues that may arise in the process. |
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
@cedric780 please try the fix in #45 |
* Include JSON-LD MIME in isWriteable check; fixes #44 * add jsonLd support for query results as well Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
Writing to
'application/ld+json'
MIME type never work , OslcJsonLdProvider is never called.Probably same problem for
OslcJsonLdCollectionProvider
andOslcJsonLdArrayProvider
.Cause:
OslcRdfXmlProvider.isWriteable(Class<?>, Type, Annotation[], MediaType) in the parent
OslcRdfXmlProvider
class hard codes accepted media types when calling static isWriteable(...)lyo.core/oslc4j-jena-provider/src/main/java/org/eclipse/lyo/oslc4j/provider/jena/OslcRdfXmlProvider.java
Lines 139 to 145 in 71099a1
The text was updated successfully, but these errors were encountered: