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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.10.5
    • Fix Version/s: 12.6, 11.10.10
    • Component/s: Wiki
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: