XWiki Platform
  1. XWiki Platform
  2. XWIKI-13954

Default product pages should not be easily deleted

    Details

    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Users should not delete easily default product pages. Some spaces don't have technical names (e.g. Main) and users can easily think they are not needed when they contain important features.

      1. DeleteExtensionPage.png
        89 kB
      2. Proposal 1.png
        127 kB
      3. Proposal 2.png
        124 kB
      4. Proposal 3.png
        135 kB
      5. Proposal 3 bis.png
        45 kB
      6. Proposal 4.png
        130 kB
      7. Proposal 4 Worse Case Scenario.png
        1.60 MB
      8. Proposal 5.png
        180 kB
      9. Proposal 6.png
        78 kB
      10. TimeOut.png
        12 kB

        Issue Links

          Activity

          Hide
          Vincent Massol added a comment - - edited

          It's not only those pages in the XWiki space Guillaume. For example I know we have some applications that will create a Config page the first time you navigate to their Admin section. Need to think about a solution for all extension-generated pages so that they can be somehow considered as belonging to the app that generates them.

          Show
          Vincent Massol added a comment - - edited It's not only those pages in the XWiki space Guillaume. For example I know we have some applications that will create a Config page the first time you navigate to their Admin section. Need to think about a solution for all extension-generated pages so that they can be somehow considered as belonging to the app that generates them.
          Hide
          Guillaume Delhumeau added a comment - - edited

          This can be done by adding automatically an XObject on each auto-generated page. This could be XWiki.AutomaticPage or something like that.

          This should be done in the AbstractMandatoryClassInitializer for example. However, I have already worked much more time than estimated on this issue (1 week instead of 2 days) so it could be reported in a new JIRA issue. WDYT?

          Show
          Guillaume Delhumeau added a comment - - edited This can be done by adding automatically an XObject on each auto-generated page. This could be XWiki.AutomaticPage or something like that. This should be done in the AbstractMandatoryClassInitializer for example. However, I have already worked much more time than estimated on this issue (1 week instead of 2 days) so it could be reported in a new JIRA issue. WDYT?
          Hide
          Thomas Mortagne added a comment -

          But if you have any idea, it would help.

          The current standard way to check for those pages (and what EM XAR handler use for example) is com.xpn.xwiki.doc.MandatoryDocumentInitializerManager#getMandatoryDocumentInitializer(DocumentReference reference).

          Show
          Thomas Mortagne added a comment - But if you have any idea, it would help. The current standard way to check for those pages (and what EM XAR handler use for example) is com.xpn.xwiki.doc.MandatoryDocumentInitializerManager#getMandatoryDocumentInitializer(DocumentReference reference) .
          Hide
          Vincent Massol added a comment -

          Guillaume Delhumeau yes please raise a new jira for pages belonging to extensions but not listed as such since this issue is now closed and the issue is still there. Thanks

          Show
          Vincent Massol added a comment - Guillaume Delhumeau yes please raise a new jira for pages belonging to extensions but not listed as such since this issue is now closed and the issue is still there. Thanks
          Hide
          Guillaume Delhumeau added a comment -

          Created XWIKI-14036.

          Show
          Guillaume Delhumeau added a comment - Created XWIKI-14036 .

            People

            • Assignee:
              Guillaume Delhumeau
              Reporter:
              Elena-Oana Tabaranu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: