-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with TeamCity 2018.1.2 #112
Comments
Thanks for the heads up. Updating TeamCity to 2018.1.2 now to check. |
The most recent version of the ExceptionMapperUtil file is extracted from the SVN history, and copied into the project locally. This is a temporary workaround to address https://youtrack.jetbrains.com/issue/TW-56626 and #112 The actual problem is caused by the removal of src/jetbrains/buildServer/server/rest/jersey/ExceptionMapperUtil.java. The replacement appears to be to extend ExceptionMapperBase instead, however the ExceptionMapperBase class appears to force the response to be text/plain, because it takes a ResponseData object and builds a Jersey Response object itself. Previously, we were free to return our own Response object, and could serialise the response as JSON or XML if that was helpful.
Hi @htonheim. As mentioned on the YouTrack ticket, removing the Web Hooks REST API (tcWebHooks) plugin from the Administation -> Plugins page on the TeamCity server and restarting TeamCity will resolve this issue. You do not need to uninstall the Web Hooks (tcWebHooks) plugin. I am testing a fix for this issue at the moment, and hope to do a release shortly. |
New release available: https://github.com/tcplugins/tcWebHooks/releases/tag/v1.1-alpha18.241.356 |
Issue is resolved by new release. |
The most recent version of the ExceptionMapperUtil file is extracted from the SVN history, and copied into the project locally. This is a temporary workaround to address https://youtrack.jetbrains.com/issue/TW-56626 and #112 The actual problem is caused by the removal of src/jetbrains/buildServer/server/rest/jersey/ExceptionMapperUtil.java. The replacement appears to be to extend ExceptionMapperBase instead, however the ExceptionMapperBase class appears to force the response to be text/plain, because it takes a ResponseData object and builds a Jersey Response object itself. Previously, we were free to return our own Response object, and could serialise the response as JSON or XML if that was helpful.
The most recent version of the ExceptionMapperUtil file is extracted from the SVN history, and copied into the project locally. This is a temporary workaround to address https://youtrack.jetbrains.com/issue/TW-56626 and #112 The actual problem is caused by the removal of src/jetbrains/buildServer/server/rest/jersey/ExceptionMapperUtil.java. The replacement appears to be to extend ExceptionMapperBase instead, however the ExceptionMapperBase class appears to force the response to be text/plain, because it takes a ResponseData object and builds a Jersey Response object itself. Previously, we were free to return our own Response object, and could serialise the response as JSON or XML if that was helpful.
Expected Behavior
TeamCity should work.
Current Behavior
TeamCity UI breaks down completely. teamcity-server.log is full of "Unexpected response while executing internal Rest API request". See https://youtrack.jetbrains.com/issue/TW-56626.
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: