-
Bug
-
Resolution: Answered
-
Low
-
None
-
5.9.7, 1000.100.0
-
1
-
Severity 3 - Minor
-
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
- Create a page with the "Обзор" title
- 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"
- relates to
-
CONFCLOUD-42670 REST API GET title parameter not working with UTF-8 characters
-
- Closed
-
[CONFSERVER-42670] REST API GET title parameter not working with UTF-8 characters
Workflow | Original: JAC Bug Workflow v3 [ 2901685 ] | New: CONFSERVER Bug Workflow v4 [ 2994279 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2798091 ] | New: JAC Bug Workflow v3 [ 2901685 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2709368 ] | New: JAC Bug Workflow v2 [ 2798091 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380075 ] | New: JAC Bug Workflow [ 2709368 ] |
Resolution | New: Answered [ 9 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2277614 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380075 ] |
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 |
Labels | Original: affects-cloud affects-server team-core warranty | New: affects-cloud affects-server claimed-shipit-39 team-core warranty |
Assignee | New: Hasnae [ hrehioui ] |