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

Unable to save a new wiki descriptor with the script service

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.4-rc-1
    • Component/s: Wiki
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Imagine you have destroyed by mistake a descriptor, but the database still exists.

      You might want to write a groovy code like this one:

      def descriptor = new WikiDescriptor("existingDatabase", "myAlias");
      services.wiki.saveDescriptor(descriptor);
      

      but it throws a NullPointerException.

        Attachments

          Activity

            People

            • Assignee:
              gdelhumeau Guillaume Delhumeau
              Reporter:
              gdelhumeau Guillaume Delhumeau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: