I am having a problem with my Bitbucket installation. Viewing of the source or diffs do not work anymore, after a restart.
It seems it is serializing twice on some endpoints, outputting "{\"foo\":\"bar\"}" instead of {"foo":"bar"}. For example on /rest/shortcuts/latest/shortcuts/6433dff/bundled causing the following error:
keycommands.js?_statichash=37818e7b0dcec195edbcd6beeb7c7a7f-CDN%2F-150220931%2F6433dff%2F1%2F3bc2d48f91521e1c446cc5b6c0571ff0&locale=en-US:formatted:1 Uncaught Error: Server returned no shortcuts.
at Object.success (keycommands.js?_statichash=37818e7b0dcec195edbcd6beeb7c7a7f-CDN%2F-150220931%2F6433dff%2F1%2F3bc2d48f91521e1c446cc5b6c0571ff0&locale=en-US:formatted:1)
at i (keycommands.js?_statichash=37818e7b0dcec195edbcd6beeb7c7a7f-CDN%2F-150220931%2F6433dff%2F1%2F3bc2d48f91521e1c446cc5b6c0571ff0&locale=en-US:formatted:1)
at Object.fireWith [as resolveWith] (keycommands.js?_statichash=37818e7b0dcec195edbcd6beeb7c7a7f-CDN%2F-150220931%2F6433dff%2F1%2F3bc2d48f91521e1c446cc5b6c0571ff0&locale=en-US:formatted:1)
at u (keycommands.js?_statichash=37818e7b0dcec195edbcd6beeb7c7a7f-CDN%2F-150220931%2F6433dff%2F1%2F3bc2d48f91521e1c446cc5b6c0571ff0&locale=en-US:formatted:1)
at XMLHttpRequest.<anonymous> (keycommands.js?_statichash=37818e7b0dcec195edbcd6beeb7c7a7f-CDN%2F-150220931%2F6433dff%2F1%2F3bc2d48f91521e1c446cc5b6c0571ff0&locale=en-US:formatted:1)
I think one of the plugins has registered a faulty serialiser. I entered safe mode (which should disable all user plugins) but the same problem seems to occur.
Is there any way to print all registered serializers or to see them using the JVM debug? Or does anyone have a better idea?