-
-
Notifications
You must be signed in to change notification settings - Fork 74
Not saving configuration #116
Comments
Reinstalling the plugin doesnt reset configurations either |
What browser are you using? I have only tested it with Chrome. |
* Found JS that may crashes in IE9. #116
I released 2.20 with a small Javascript change thay may have caused crash in IE9. I dont have such an installation so cannot be sure that was the problem here. |
I am using Chrome aswell so that can't be the problem. |
The storage key is: I dont know more about where they end up in the database. Did you upgrade from an earlier versio when you encountered this problem?
|
No, i installed the plugin and was able to set the configuration once. |
If you use Chrome and developer tools (F12). You should see a call to |
I get no response to that call. |
Yes, that is intended. Without any triggeres checked, its gonna be impossible to trigger the notification. You have to check another trigger, or delete the notification. |
I understand that. I was only trying to clearify that i do get a response when setting no triggers but dont get any when i do set them. |
I added some examples with Curl to the readme. If you try them on you installation, what do they return? |
I added integration tests for REST API and found the problem. Missing annotations, not specifying consuming content type of resources. Will release fix in 2.21. |
Issue is still happening with 2.21 and using bitbucket 4.6.0 (docker image). After saving the configuration for a given repo, and then refreshing the page, all the saved info is gone. Any ideas? Any info I can provide to help test/debug? |
There are some examples with curl in the readme. Do they work for you? Can you use them to create a notification? |
Using Chrome. You may hit F12, view network tab, press save for a notification, right click on the request in the network field, copy as curl, paste it here. |
@tomasbjerre ran this curl command:
and got the below for the result. Everything appears to be fine but visiting the config page everything is empty.
|
Are you able to view logs? There are logging from SettingsService that is a bit interesting here. It should log when it finds no settings and looks for legacy settings. |
If you browse to I tried the docker image now, it works for me. |
This is what I get returned from that endpoint:
|
Also not seeing anything from this plugin within the logs. |
It is there. I assumed for a given job there would be 1 way of configuring things and so didn't think to look for a drop down list. Because of that I assumed the last thing I saved would be the first thing displayed when going back to this page. My apologies for re-opening the issue. The latest release does appear to solve this problem. Thanks for walking through things with me. |
No problem =) |
curl "http://localhost:7990/plugins/servlet/xproduct/admin?name=bhagya&time=10"%"3A30" -H "Accept-Encoding: gzip, deflate, sdch" -H "Accept-Language: en-US,en;q=0.8" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8" -H "Referer: http://localhost:7990/plugins/servlet/xproduct/admin?name=dcdff&time=fdsfszfsf" -H "Cookie: net.seibertmedia.linchpin.sidebar.state=opened; jira.editor.user.mode=wysiwyg; confluence.list.pages.cookie=list-content-tree; confluence.browse.space.cookie=space-blogposts; confluence.last-web-item-clicked=system.space.tools"%"2Fintegrations"%"2Fapplinks-configure-entity-links-2; _ga=GA1.1.528227536.1516776908; AJS.conglomerate.cookie=""|hipchat-invite-visited=true|COOKIES_ARE_COOL=not true""; JSESSIONID=C9CC51F341CE2CEE5DC56F60FF837A20; atlassian.xsrf.token=BS1P-LMMI-OXUD-NGW6|74eb90d84a44b73176d1c4d2445b28025df65277|lin; _atl_bitbucket_remember_me=NTM0ZDUwN2QwNmU3NmE3OTAxNGIyMzFmNDI2ZTJkMDI2MDk2NTE3OTplYTA4NTYzZGJkMzEwZWE4M2ZiYWVkNTAwMzQyOTk2M2YwYjNjMTVk; BITBUCKETSESSIONID=BC442482940BC65BA24EAA686813D7DD" -H "Connection: keep-alive" --compressed |
hi tomasbjerre, I have tried with the plugin in bitbucket using below URL "https://developer.atlassian.com/server/framework/atlassian-sdk/creating-an-admin-configuration-form/" The plugin is not saving any configuration data when i press the button save. |
only json data am getting in the chrome is: {"time":0} this is after entering the value in the configuration form. please assist because nothing is saved in the configuration form in bitbucket |
Using plugin version 2.19 and Bitbucket v4.1.3.
After installing the plugin i configured this plugin with some triggers.
Now i am trying to remove the trigger on 'COMMENTED' but the plugin doesnt seem to save my edited configurations and still triggers on comments.
Also, when i open the configuration page all fields are blank.
Not seeing any errors in browser when clicking the save button after editing the configurations.
Did not see any errors in log file.
The text was updated successfully, but these errors were encountered: