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

API v2 converts non-ASCII characters in repo name to hyphen

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      When creating a repository via the API with slug: label-test and name: label/test, the name of the created repository is "label-test" and not the expected "label/test"
      I can create repositories via the bitbucket website as "label/test" without trouble; the slug is converted to "label-test" as expected and leaves the name intact.
      Here is the full API request:

      #!php
      
      POST /2.0/repositories/LabelInteractive/label-sample
      HTTP/1.1
      Host: api.bitbucket.org
      scm: git
      name: label/sample
      fork_policy: no_public_forks
      is_private: 1
      User-Agent: Guzzle/3.9.1 curl/7.30.0 PHP/5.5.9
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: