jfilter
jfilter copied to clipboard
Your adding the converters with same index.
https://github.com/rkonovalov/jfilter/blob/32e977eaa500ea6cdd033e6519d957a06feb9c7c/src/main/java/com/jfilter/components/FilterRegister.java#L138
How exactly we can set filterConfiguration.isUseDefaultConverters() to true from client, it wil always go else part and set filterconverter, This is causing the issue conflicting between gson and jackson.
/** * Add filter converters if filtration is enabled * If isUseDefaultConverters enabled, JFilter uses default message converters MappingJackson2HttpMessageConverter * and MappingJackson2XmlHttpMessageConverter *
* Otherwise uses FilterConverter * * @param converters list of {@link HttpMessageConverter} */ @Override public void extendMessageConverters(List<HttpMessageConverter<?>> converters) { if (filterConfiguration.isEnabled()) { if (filterConfiguration.getCustomConverters().size() > 0) { converters.addAll(0, filterConfiguration.getCustomConverters()); } else if (filterConfiguration.isUseDefaultConverters()) { removeDefaultConverters(converters); converters.add(0, new MappingJackson2HttpMessageConverter(new FilterObjectMapper(filterConfiguration))); converters.add(0, new MappingJackson2XmlHttpMessageConverter(new FilterXmlMapper(filterConfiguration))); } else converters.add(0, new FilterConverter(filterConfiguration)); } }
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.
Why there is check in Media type in FilgerConverter, if Media type is not defined for rest endpoint , those rest calls are not able to deserialise, any reason for doing this.