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

Impossible to add several aliases in a wiki descriptor using the API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.6, 11.10.10
    • 11.10.5
    • Wiki
    • None
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      {{groovy}}
        def descriptor = services.wiki.getById("xwiki");
        println("Adding alias [alias1] in the descriptor for [$descriptor.id]...");
        descriptor.addAlias("alias1");
        println("Adding alias [alias2] in the descriptor for [$descriptor.id]...");
        descriptor.addAlias("alias2");
        services.wiki.saveDescriptor(descriptor);
      {{/groovy}}
      

      If you look at the wiki descriptor then, you will notice only "alias2" is configured.

      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: