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

RPC Search method has incorrect parameter name

    XMLWordPrintable

Details

    Description

      The documentation at http://confluence.atlassian.com/display/DOC/Remote+API+Specification#RemoteAPISpecification-Search says the parameter is called "lastModified" (and has as far back as the Confluence 2.3 docs), but the code (confluence-rpc-plugin/src/java/com/atlassian/confluence/rpc/soap/services/PagesSoapService.java) only accepts "modified".

      Also, the acceptable values for the parameter are direct from DateRangeEnum, which are naturally all caps. So the documented values must be uppercase to be recognized; the values in the doc are all lowercase.

      This bit a user in the forums: http://forums.atlassian.com/thread.jspa?messageID=257298074.

      I'm raising a bug because the right thing here would be to correct all previous versions of the doc to specify that "modified" is the name while changing trunk to accept both "modified" and "lastModified" going forward, perhaps with "lastModified" being an undocumented feature. Acceptable values for the parameter were probably not required to be uppercase before 2.9, so that should be looked into as well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bspeakmon Ben Speakmon [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: