-
Notifications
You must be signed in to change notification settings - Fork 30
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
Saving Webhook Event Template Fails with Alert Dialog [Object object] #152
Comments
Hi @jadenz98 can you please take a look at the JavaScript console in your browser and see if there are any errors there? Open the console and then click save. |
Also, which browser are you using? Name and version please. |
Thanks. It looks like the URL to post the templates to is being calculated incorrectly. Is your TeamCity instead located somewhere other than / on your server? Can you post the URL from your browser as shown when you're editing the template? You can remove the hostname. I'm just interested in the part after that. I suspect it's not just |
Hi @jadenz98 I have reproduced this problem. It occurs when the This changes what's called the "context" in Tomcat. However, the TeamCity REST API does not build the REST API URLs correctly (by adding the context to the start) when building the response, and my code just uses the I have raised a bug with TeamCity here: https://youtrack.jetbrains.com/issue/TW-64841 I'll try to come up with a work around over the weekend. I have tried some things today, but have not been successful in generating the |
The response from the TeamCity developers is that this is by design. I will need to work around it by prefixing the context onto the URL when the rest request is executed. I'll work on this over the weekend and do a new release to resolve this issue. |
If Teamcity is installed a location other than "/", (eg webapps/ROOT renamed to webapps/teamcity) then requests made using the URL built from the href field returned in the REST payload would fail. This fix prepends the window['base_uri'] string, which contains the Tomcat context prefix. Fixes #152
@jadenz98 A new release is available, which fixes this bug. Thanks for taking the time to report it. |
If Teamcity is installed a location other than "/", (eg webapps/ROOT renamed to webapps/teamcity) then requests made using the URL built from the href field returned in the REST payload would fail. This fix prepends the window['base_uri'] string, which contains the Tomcat context prefix. Fixes #152
Expected Behavior
When creating a webhook event template, the event template should be saved upon clicking Save Template.
Current Behavior
An alert dialog appears with the text [Object object], the event template dialog remains, and the event template is not saved.
Steps to Reproduce (for bugs)
Your Environment
Example Configuration (xml)
Will provide if needed
The text was updated successfully, but these errors were encountered: