REST API can return unparseable XML output (BB-4508)

Krystian Brazulewicz avatarKrystian Brazulewicz created an issue

Attached file is a result of curl --user 'kbrazulewicz:XXXXXXXXXXXX' https://api.bitbucket.org/1.0/repositories/atlassian/bamboo/branches/?format=xml

The reason is a bizarre branch name "BSP-6780 - support for mercurial subrepos with relative path" which shouldn't be used as an XML tag name.

Comments (3)

  1. Marcus Bertrand
    • changed status to open

    This does indeed look like a bug on our end, but I don't think this is something we can address in the near term. Also, the "official" format is JSON, so you might want to have a look whether that gives you any problems. If it does, let us know and we'll prioritize accordingly.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.