Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13131

File Macro (for Creole) unable to parses correct URL (BB-16200)

    XMLWordPrintable

Details

    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

      1. Insert <<file Manylines of code/Test.txt>>
      2. Select Creole Language
      3. 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            rchia Ronald C.
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: