iamthechad / grails3-recaptcha

ReCaptcha plugin for Grails 3
Other
3 stars 10 forks source link

Recaptcha verification destroys JSON marshallers #22

Closed sarbogast closed 6 years ago

sarbogast commented 7 years ago

I'm using quite a few JSON marshallers registered in my bootstrap, and the problem is that RecaptchaService is using a brand new RestBuilder to call Google's verification API, and when RestBuilder is created like that, it blows up all JSON marshallers already registered. I don't know what the solution would be, maybe instantiate RestBuilder with registerConverters: false in the settings to prevent it from overriding JSON marshallers, but that setting is only available in the latest version of grails-datastore-rest-client.

iamthechad commented 7 years ago

Looks like this is because of https://github.com/grails/grails-data-mapping/issues/864

sarbogast commented 7 years ago

It most definitely is. And as you can see, James Kleeh recently added a flag to the RestBuilder constructor to work around that issue. But you have to use it.

iamthechad commented 7 years ago

Is there a simple example project I can reference so I can reproduce this issue?

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.