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

REST API response include other pages

    XMLWordPrintable

Details

    Description

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

      Example in Documentation is incorrect:

      REST Request with "Title" as per documented return more than the intended pages. eg:

      // with Upper Case T in the Title
      curl -u admin:admin -X GET -H "Content-Type: application/json" http://localhost:8610/conf5810b/rest/api/content?spaceKey=KLOL&Title=aa&expand=space,body.view,version,container
      
      vs
      
      // with lower case t in the title
      curl -u admin:admin -X GET -H "Content-Type: application/json" http://localhost:8610/conf5810b/rest/api/content?spaceKey=KLOL&title=aa&expand=space,body.view,version,container
      

      Expected behaviour:
      *The request with Capital T return only the intended page instead of other pages in the same space.

      *Actual behaviour:
      *Other pages in the space are included in the response.

      Documentation fix is required also required

      Originally:

      Example request URI(s):
      
      http://example.com/rest/api/content?spaceKey=TST&Title=Cheese&expand=space,body.view,version,container
      

      Should be change to:

      Example request URI(s):
      
      http://example.com/rest/api/content?spaceKey=TST&title=Cheese&expand=space,body.view,version,container
      

      Attachments

        1. capitalt.txt
          6 kB
        2. lowert.txt
          6 kB

        Issue Links

          Activity

            People

              gbrunning Giles B
              jalbion Janet Albion (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: