Details
-
Bug
-
Resolution: Timed out
-
Low
Description
Summary
Creole engine unable to provide the correct link If the name of the folder or file has whitespace.
It only parses the first part of the name.
Example:
<<file 7d121ff:Manylines of code/Test.txt>> => Manylines (https://bitbucket.org/<Owner>/<reponame>/src/7d121ff/%5BManylines:#cl-code.txt})
<<file 7d121ff:Test file.txt>> => Test (https://bitbucket.org/<Owner>/<reponame>/src/7d121ff/%5BTest:#cl-code.txt})
Syntax given in documentation:
<<file path/to/file revision linenumber>>
or
<<file revison:path/to/file#linenumber>>
https://confluence.atlassian.com/display/BITBUCKET/Macro+Reference+for+Creole+Markup
###Steps to Reproduce
- Insert <<file Manylines of code/Test.txt>>
- Select Creole Language
- Click Preview
###Expected Results
Display:
Manylines
Redirected Link:
https://bitbucket.org/<Owner>/<reponame>/src/7d121ff/%5BManylines:#cl-code.txt}
###Actual Results
Display:
Manylines of code/Test.txt
Redirected Link:
https://bitbucket.org/<Owner>/<reponame>/src/7d121ff/%5BManylines%20of%20code/Test.txt:#cl-code.txt}
###Notes
Replaced whitespace with %20 but redirection doesn't work as it parses as %2520