jfilter icon indicating copy to clipboard operation
jfilter copied to clipboard

Your adding the converters with same index.

Open anil-manjappa opened this issue 4 years ago • 9 comments

https://github.com/rkonovalov/jfilter/blob/32e977eaa500ea6cdd033e6519d957a06feb9c7c/src/main/java/com/jfilter/components/FilterRegister.java#L138

anil-manjappa avatar Aug 10 '20 09:08 anil-manjappa

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)); } }

anil-manjappa avatar Aug 10 '20 14:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa

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.

anil-manjappa avatar Aug 12 '20 12:08 anil-manjappa