Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-11421

API: private repo, private tracker, unable to create / update / post comment on issue

    XMLWordPrintable

Details

    Description

      Hi to all.
      I'm using OAuth to authenticate to BB.
      I check that it works, trying to list all repos, and it gives me also the private repos owned by me.

      If i try to post a new issue, it gives me 401 UNAUTHORIZED

      Here are the header sent:

      POST https://bitbucket.org/api/1.0/repositories/eliosh/gestsdn2/issues/24/comments HTTP/1.1
      User-Agent: Drupal (+http://drupal.org/)
      Content-type: application/x-www-form-urlencoded
      Content-length: 36
      Accept: application/json
      Authorization: OAuth oauth_version="1.0",oauth_nonce="xxx",oauth_timestamp="x",oauth_consumer_key="x",oauth_token="x",oauth_signature_method="x",oauth_signature="x"
      Host: bitbucket.org
      
      content=Speriamo+che+funzioni+adesso
      
      
      

      and those are header received

      HTTP/1.1 401 UNAUTHORIZED
      Server: nginx/1.6.2
      Date: Thu, 04 Jun 2015 08:56:25 GMT
      Content-Type: text/html; charset=utf-8
      Content-Length: 0
      Connection: keep-alive
      X-Served-By: app15
      X-Render-Time: 0.0166809558868
      Content-Language: en
      X-Static-Version: 178574514dce
      Vary: Accept-Language, Cookie
      X-Version: 57a526a7704d
      ETag: "x"
      X-Request-Count: 69
      X-Frame-Options: SAMEORIGIN
      WWW-Authenticate: Basic realm="Bitbucket.org HTTP"
      

      How can i solve this problem?

      Thanks a lot

      Attachments

        Activity

          People

            6995b9ed1710 evzijst
            4d31eae44209 eliosh
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: