Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-645

api.XWiki.wrapDocs should be more flexible

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 B1
    • Fix Version/s: 1.0 B2
    • Labels:
      None
    • Similar issues:

      Description

      wrapDocs assumes that the received list contains only XWikiDocuments-s. A better behavior would be:

      • an XWikiDocument is wrapped in an api.Document
      • an api.Document is returned as is
      • a valid document name is transformed into an wrapped document
      • all other types of elements are discarded

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: