You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the OslcRdfXmlProvider hence also in the OslcXmlProvider the isReadable method always returns true.
This makes it impossible to use another XML Messagebody reader.
isReadable method should be implemented correctly, e.g.:
` @Override
public boolean isReadable(final Class<?> type, final Type genericType, final Annotation[] annotations,
final MediaType mediaType) {
return isReadable(type, mediaType, OslcMediaType.APPLICATION_RDF_XML_TYPE, OslcMediaType.APPLICATION_XML_TYPE,
OslcMediaType.TEXT_XML_TYPE, OslcMediaType.TEXT_TURTLE_TYPE);
}`
The text was updated successfully, but these errors were encountered:
Thank you for your report, @jhemm2, and a suggested fix. Would you be able to make a pull request, please? Also, do we need to do the same fix in other classes?
jhemm2
changed the title
OslcXmlProvider / OslcRdfXmlProvider always returns is readable = true
OslcXmlProvider / OslcRdfXmlProvider always returns true for method "isReadable"
Dec 22, 2021
jhemm2
added a commit
to jhemm2/lyo
that referenced
this issue
Dec 22, 2021
In the OslcRdfXmlProvider hence also in the OslcXmlProvider the isReadable method always returns true.
This makes it impossible to use another XML Messagebody reader.
isReadable method should be implemented correctly, e.g.:
The text was updated successfully, but these errors were encountered: