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

REST API GET title parameter not working with UTF-8 characters

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

      Summary

      REST API GET title parameter doesn't work with UTF-8 characters

      Steps to Reproduce

      1. Create a page with the "Обзор" title
      2. Run the following cURL
        curl -u admin:admin -X GET "http://localhost:8090/confluence/rest/api/content?title=Обзор&spaceKey=<space-key>"
        

      Expected Results

      The GET command returns all the page's information.

      Actual Results

      The code doesn't work and returns:

      {"results":[],"start":0,"limit":25,"size":0,"_links":{"self":"http://localhost:8090/confluence/rest/api/content?spaceKey=GP&title=%C3%90%C2%9E%C3%90%C2%B1%C3%90%C2%B7%C3%90%C2%BE%C3%91%C2%80","base":"http://localhost:8090/confluence","context":"/confluence"}}
      

      Notes

      POST cURL works for the "Обзор" word:

      curl -u admin:admin -X POST -H 'Content-Type: application/json' -d'{"type":"page","title":"1. Обзор","space":{"key":"GP"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}' http://localhost:8090/confluence/rest/api/content/
      

      Workaround

      Use the pageid= instead of the title=

      curl -u admin:admin -X GET "http://localhost:8090/confluence/rest/api/content?pageid=10813474&spaceKey=GP"
      

            [CONFSERVER-42670] REST API GET title parameter not working with UTF-8 characters

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2901685 ] New: CONFSERVER Bug Workflow v4 [ 2994279 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2798091 ] New: JAC Bug Workflow v3 [ 2901685 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2709368 ] New: JAC Bug Workflow v2 [ 2798091 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380075 ] New: JAC Bug Workflow [ 2709368 ]
            Hasnae (Inactive) made changes -
            Resolution New: Answered [ 9 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2277614 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380075 ]
            Bugfix Automation Bot made changes -
            Labels Original: affects-cloud affects-server claimed-shipit-39 team-core warranty New: affects-cloud affects-server claimed-shipit-39 done-shipit-39 team-core warranty
            Hasnae (Inactive) made changes -
            Labels Original: affects-cloud affects-server team-core warranty New: affects-cloud affects-server claimed-shipit-39 team-core warranty
            Hasnae (Inactive) made changes -
            Assignee New: Hasnae [ hrehioui ]

              hrehioui Hasnae (Inactive)
              gviana Guilherme V. (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: