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

Unable to create a page from office if the wiki does not contain any template provider and the user isn't an advanced user

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Since XWIKI-12477, we need to go to the create form to select the "Page from Office" type, in order to import an office document.

      However, on an wiki which is almost empty (only having the office importer UI), when you go to the create action on a page that does not exist yet, you don't have the create form, but you are redirected to the edit mode.

      This is due to the fact that the create action considers it has enough information to create the page.

      I have not seen the problem on XE because the wiki have a dashboard template, and there is a check in the create action: if a template provider exists and the user haven't chosen a template, then the create form is displayed.

      We need the same thing for the "type" option that have been introduced recently.

      Actually, we could even consider adding some extension points in the create action. One of this extension point would be for the office importer. If the "office" type is chosen, the create action should redirect to the OfficeImporter page on the wiki. It is currently done by a javascript.

      Attachments

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: