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


Issue #8534 closed

Wiki pages fail to URL-encode certain characters ("#", etc) (BB-9742)

created an issue

If you create a Wiki page through the web interface and you put a forward slash '/' on the title (e.g. 'foo/bar') the server spawn a HTTP 500 error. The file is created on the repository (foo/bar.md).

If you create a page called '#foo' bitbucket does create a '#foo.md' on the repository but redirect you to '/wiki/Home#foo'.

I think that URI reserved characters should be URL encoded.

Comments (13)

  1. Erik van Zijst staff

    I can't reproduce this problem. Could we move this to support so we can have a closer look?

    Can you send us the repo details and the pages you attempted to create at support@bitbucket.org and mention this issue?

  2. zaerl reporter

    It seems that now the title 'foo/bar' now doesn't spawn the 500 error. Anyway '../foo' does and '#foo' isn't urlencoded.

    I have written a detailed email to the support team as you suggested.

  3. Brodie Rao

    There's definitely a bug there involving # (and possibly other characters). Unfortunately, the fix isn't trivial (we need to upgrade Django, unfortunately), so I've put this issue back into our internal backlog.

    In the meantime, I recommend manually fixing the URL after you create/edit pages like this. If you can avoid using those characters, that would obviously be best.

  4. Log in to comment