1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #9870 closed

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


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

Comments (4)

  1. Paris Paraskeva

    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