Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-47899

When posting an answer to a question, URLs with apostrophe's are incorrectly truncated

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Steps to reproduce:
      1. Post an answer to a question. In the answer, paste a URL which has an apostrophe in the URL, e.g. https://confluence.atlassian.com/display/CONFKB/Editing+or+Deleting+a+Page+That+Won't+Render
      2. Save the answer. The URL alias will show the full URL.
      3. Hover over or click the URL to check the target. Everything after the apostrophe will be removed.

      Example: https://extranet.atlassian.com/questions/2343677488/answers/2344069866

            [CONFSERVER-47899] When posting an answer to a question, URLs with apostrophe's are incorrectly truncated

            Users in our team have encountered this problem when pasting links to Google Maps locations.  The team refer to locations on Google maps based on longitude and latitude coordinates for accuracy and locations are not necessarily registered places with a name. 

            EG: https://www.google.com/maps/place/31%C2%B057'33.9%22S+115%C2%B049'46.1%22E/@-31.9594214,115.824987,17z/data=!3m1!4b1!4m13!1m8!3m7!1s0x2a32966cdb47733d:0x304f0b535df55d0!2sPerth+WA,+Australia!3b1!8m2!3d-31.9523123!4d115.861309!16zL20vMDYycWc!3m3!8m2!3d-31.959426!4d115.829477?hl=en-AU

             

            When you paste this URL into a confluence page as plain text, the full text is pasted and converted to a hyperlink as expected.  When editing the link, the content of the address field is truncated, removing all text after the first apostrophe character ['] in the URL. 

             

            Address:  https://www.google.com/maps/place/31%C2%B057

            Link Text:  https://www.google.com/maps/place/31%C2%B057'33.9%22S+115%C2%B049'46.1%22E/@-31.9594214,115.824987,17z/data=!3m1!4b1!4m13!1m8!3m7!1s0x2a32966cdb47733d:0x304f0b535df55d0!2sPerth+WA,+Australia!3b1!8m2!3d-31.9523123!4d115.861309!16zL20vMDYycWc!3m3!8m2!3d-31.959426!4d115.829477?hl=en-AU

             

            Also noted:

            • Pasting the URL from Google Maps as plain text does not initiate the Widget Connector
            • Pasting the Share link from Google maps does not initiate the widget connector (for both coordinate location and named location)

            Natalie Toohey added a comment - Users in our team have encountered this problem when pasting links to Google Maps locations.  The team refer to locations on Google maps based on longitude and latitude coordinates for accuracy and locations are not necessarily registered places with a name.  EG: https://www.google.com/maps/place/31%C2%B057'33.9%22S+115%C2%B049'46.1%22E/@-31.9594214,115.824987,17z/data=!3m1!4b1!4m13!1m8!3m7!1s0x2a32966cdb47733d:0x304f0b535df55d0!2sPerth+WA,+Australia!3b1!8m2!3d-31.9523123!4d115.861309!16zL20vMDYycWc!3m3!8m2!3d-31.959426!4d115.829477?hl=en-AU   When you paste this URL into a confluence page as plain text, the full text is pasted and converted to a hyperlink as expected.  When editing the link, the content of the address field is truncated, removing all text after the first apostrophe character ['] in the URL.    Address:   https://www.google.com/maps/place/31%C2%B057 Link Text:  https://www.google.com/maps/place/31%C2%B057'33.9%22S+115%C2%B049'46.1%22E/@-31.9594214,115.824987,17z/data=!3m1!4b1!4m13!1m8!3m7!1s0x2a32966cdb47733d:0x304f0b535df55d0!2sPerth+WA,+Australia!3b1!8m2!3d-31.9523123!4d115.861309!16zL20vMDYycWc!3m3!8m2!3d-31.959426!4d115.829477?hl=en-AU   Also noted: Pasting the URL from Google Maps as plain text does not initiate the Widget Connector Pasting the Share link from Google maps does not initiate the widget connector (for both coordinate location and named location)

            This looks like a problem in Confluence core. See: CONF-24320.

            Matthew Erickson added a comment - This looks like a problem in Confluence core. See: CONF-24320 .

              Unassigned Unassigned
              alui Andrew
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated: