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

api.XWiki.wrapDocs should be more flexible

    XMLWordPrintable

Details

    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

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

            Dates

              Created:
              Updated:
              Resolved: