• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 2.8.1
    • None
    • 3
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Why is the plus () sign an illegal character when uploading attachments, but when you save an attachment (or export as Word), all spaces are replaced by the plus sign? Can you change the behaviour to insert "%20" instead of ""? Currently, you need to convert all plus signs to spaces before re-uploading an attachment that has been downloaded.

      [ucdavis.edu]

            [CONFSERVER-7760] Make the plus-sign a legal character for attachments

            I believe this issue should be reopened or at least marked as WontFix, because it hasn't been fixed.

            This is a clear example of a "leaky abstraction" when implementation details are filtered out to the user to his or her chagrin. User Joe has a file in his desktop, called "Joe+&&+". That name is perfectly legal in his operating system (it is in most). Then he tries to upload to Confluence and... whack! not legal now. Why, he asks? Then we have to tell him about URLEncoding....

            Come on boys! There are clear mechanisms to avoid these problems. Please use them.

            Daniel Varela Santoalla added a comment - I believe this issue should be reopened or at least marked as WontFix, because it hasn't been fixed. This is a clear example of a "leaky abstraction" when implementation details are filtered out to the user to his or her chagrin. User Joe has a file in his desktop, called "Joe+ && +". That name is perfectly legal in his operating system (it is in most). Then he tries to upload to Confluence and... whack! not legal now. Why, he asks? Then we have to tell him about URLEncoding.... Come on boys! There are clear mechanisms to avoid these problems. Please use them.

            Are you sure this has been fixed?

            This still doesn't work for me in 3.4.3... I get "Magics+-2.10.0.tar.gz contains illegal characters ('&', '', '?', '|' or '=')."

            Daniel Varela Santoalla added a comment - Are you sure this has been fixed? This still doesn't work for me in 3.4.3... I get "Magics+ -2.10.0.tar.gz contains illegal characters ('&', ' ', '?', '|' or '=')."

            AudraA added a comment -

            fixed in 2.8.1

            AudraA added a comment - fixed in 2.8.1

            On a related note, it'd be nice to allow the & as well since it's a legal file name character (at least in Windows). In my case, AT&T is a client and there are tons of documents with that symbol. I realize it would require various code changes to encode the & in URLs etc.

            John Price added a comment - On a related note, it'd be nice to allow the & as well since it's a legal file name character (at least in Windows). In my case, AT&T is a client and there are tons of documents with that symbol. I realize it would require various code changes to encode the & in URLs etc.

            Just a heads up: I'm noticing that the Remote API appears to allow plus signs in attachment filenames when it does not allow them in the normal attachment UI. I'm not sure if this is by design or not, but it seems related to this issue. I've attached a screenshot (RemoteAPIAllowsPlus.jpg)

            Laura Kolker added a comment - Just a heads up: I'm noticing that the Remote API appears to allow plus signs in attachment filenames when it does not allow them in the normal attachment UI. I'm not sure if this is by design or not, but it seems related to this issue. I've attached a screenshot (RemoteAPIAllowsPlus.jpg)

            Matt Ryall added a comment -

            Hi guys,

            Thanks for your feedback.

            At the moment, we'd prefer to resolve the issue where attachments are downloaded with plus signs in the name (CONF-2487). If we solved this bug, would uploading files with plus signs still be necessary?

            If so, I can close this issue as a duplicate, and you can place your votes against that bug to help us prioritise it.

            Regards,
            Matt

            Matt Ryall added a comment - Hi guys, Thanks for your feedback. At the moment, we'd prefer to resolve the issue where attachments are downloaded with plus signs in the name ( CONF-2487 ). If we solved this bug, would uploading files with plus signs still be necessary? If so, I can close this issue as a duplicate, and you can place your votes against that bug to help us prioritise it. Regards, Matt

            PaulC added a comment -

            Dear Atlassian,
            This is a very important aspect for ease of use when regularly updating attachments. Do you have any updates on how your investigations are going?

            At the moment, one workaround we found is to start off by uploading files with "underscores" instead of spaces, eg "this_is_a_file.xls".

            However, it will take quite a while for new users to get used to this, and it seems quite tedious to have a filename's spaces renamed to + symbols, only to find that you can not reupload it without renaming it again.

            Can Confluence be configured so that it will rename spaces into Underscores instead?

            regards,
            Paul

            PaulC added a comment - Dear Atlassian, This is a very important aspect for ease of use when regularly updating attachments. Do you have any updates on how your investigations are going? At the moment, one workaround we found is to start off by uploading files with "underscores" instead of spaces, eg "this_is_a_file.xls". However, it will take quite a while for new users to get used to this, and it seems quite tedious to have a filename's spaces renamed to + symbols, only to find that you can not reupload it without renaming it again. Can Confluence be configured so that it will rename spaces into Underscores instead? regards, Paul

            Matt Ryall added a comment -

            Thanks for the suggestion. To fix this, we'd need to investigate the reason why this limitation was introduced. I think it would involve a change to our wiki markup parsing and URL generation for attachments.

            Matt Ryall added a comment - Thanks for the suggestion. To fix this, we'd need to investigate the reason why this limitation was introduced. I think it would involve a change to our wiki markup parsing and URL generation for attachments.

              Unassigned Unassigned
              stafford@customware.net Stafford Vaughan [CustomWare]
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: