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

Trying to create a document based on a templates from another wiki fails

    XMLWordPrintable

Details

    • Unknown

    Description

      For example, clicking on a non-existing release notes link from the manager.xwiki.org wiki should create a document on the www.xwiki.org wiki. When it tries to fetch the list of possible document templates to apply, since that would be a cross-site AJAX request, the browser first tries to send an OPTIONS HTTP request to check if the server allows a CORS request. Since XWiki doesn't respond to OPTION requests, the AJAX request is blocked, and the user is left with an empty modal dialog.

      Reproduction steps (on xwiki.org):

      • On a subwiki create a page with a link to a missing main wiki page (e.g. xwiki:ReleaseNotes.Data.XWiki.11\.10\.45.WebHome)
      • Click on the link

      Expected result:

      • a modal is displayed for the creation of the page to allow chosing the template

      Obtained result:

      • an empty modal is displayed

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: