Gocd: Notification Preferences Don't Persist

Created on 8 Oct 2019  路  5Comments  路  Source: gocd/gocd

Issue Type
  • Bug Report
Summary

Email settings found under > Preferences does not persist (and therefore build status notifications are not received) after config.xml is changed in the browser.

Environment

GoCD Version: 19.8.0
Java Version: openjdk 11.0.3 2019-04-16
OS: OpenSuse Leap 15.1
Browser: latest Chrome

Steps to Reproduce
  1. Navigate to > Preferences
  2. Click 'Edit' under 'Email Settings'
  3. Click 'Enable email notification'
  4. Enter email address
  5. Save changes
  6. Add a notification ([Any Pipeline] | [Any Stage] | All | All -- | -- | -- | --)
  7. Build a pipeline, receive an email
  8. Navigate to Admin > Config XML
  9. Click 'Edit'
  10. Click 'Save'
  11. Navigation to > Preferences
  12. Observe that 'Email' under 'Email Settings' is empty and if you build a pipeline, you will not receive a notification email
Expected Results

I would expect that the email would persist in some sort of storage at least in the running instance of the go-server (AKA email is preserved/saved at least until go-server is restarted)

Actual Results

After editing the config.xml in the browser, the user's notification email is erased.

Thanks!!!

bug

All 5 comments

Update: I also tried adding the email via rest endpoint. That did not persist either.

@rschneiderman39 I was able to replicate the behavior but in my case, if I logout from the instance and login back, the user's notification email is erased.

Refer below gif:

notification_bug

I tried on both GoCD 19.8.0 and 19.9.0 versions and found the same issue. Also tried on Chrome, Firefox and Safari browsers.

@rschneiderman39 - Thanks for reporting the issue. The PR https://github.com/gocd/gocd/pull/7077 is opened to fix the same.

@bdpiparva Thanks for your quick thorough response! Much appreciated!

Verified on 19.10.0 (10307-818f6ceeda0573fcb1fc790f89aa7ad8896bc9b4)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GaneshSPatil picture GaneshSPatil  路  4Comments

arvindsv picture arvindsv  路  6Comments

GaneshSPatil picture GaneshSPatil  路  3Comments

akshaydewan picture akshaydewan  路  5Comments

maheshp picture maheshp  路  4Comments