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

Unable to save a new wiki descriptor with the script service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 5.4-rc-1
    • 5.3
    • Wiki
    • None
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: