Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12973

Repository watch in UI doesn't respect the watch API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.10.0
    • Repositories

    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

      1. Watch a repository from UI.
      2. Unwatch it from the account settings.
      3. 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'
        
      1. 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

          Activity

            People

              Unassigned Unassigned
              ff680b6e4c29 Tahir Bhat
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: