Issue #9870 new

Repository slug validation differs between web and API (BB-10943)

Matt Dwen
created an issue

Using the web interface I can create a repository using site.domain as the slug.

However using the 2.0 API and POSTing to

https://api.bitbucket.org/2.0/repositories/user/site.domain

returns Invalid URL slug value. Slugs must be limited to ASCII word characters.

Comments (3)

  1. unitedworx

    i run into this issue as well. i ended up slugging the repo name to make sure that the API wont complain.

    DIR_SLUG="$(echo -n "${PWD##*/}" | sed -e 's/[^[:alnum:]]/-/g' | tr -s '-' | tr A-Z a-z)"
    
  2. Log in to comment