Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.10.0
-
1
-
Severity 2 - Major
-
0
-
Description
Issue Summary
If a user watches and unwatches a repository from UI , then the user can't watch it again using the REST api. However, one can always watch a fresh repository using the API.
Steps to Reproduce
- Watch a repository from UI.
- Unwatch it from the account settings.
- Try watching it using the REST API as follwing
curl -u username -X POST -H "Content-Type: application/json" -d '{}' 'http://localhost:7991/rest/api/1.0/projects/TEST/repos/demo3/watch'
- There won't be any change reflected in the UI
Expected Results
The API should be respected by th UI.
Actual Results
The below exception is thrown in the xxxxxxx.log file:
...
Workaround
There isn't any workaround at the moment. Sometime it works by deleting the watch using API and then again enabling it with the API
Attachments
Issue Links
- relates to
-
BSERV-12974 Watching a reposoitory from REST API isn't reflected in 'Watched repositories'
- Gathering Impact