Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3920

Allow customizing the properties of the default extension repositories without redeclaring them

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 17.10.0
    • Extension
    • None
    • Unknown

    Description

      Problem

      The extension.repositories.<id>.<property> properties of xwiki.properties (e.g. auth.user, http.headers.<name>, or any Maven resolver setting) are only applied to the repositories explicitly declared with extension.repositories = <id>:<type>:<url> (DefaultExtensionManagerConfiguration#setRepositoryProperties).

      When no repository is declared, XWiki uses its default repositories (maven-xwiki, store.xwiki.com and extensions.xwiki.org), created by their own default sources (e.g. NexusXWikiOrgExtensionRepositorySource), which don't read these properties. So:

      • a property such as extension.repositories.maven-xwiki.aether.connector.http.retryHandler.serviceUnavailable = 503 is silently ignored;
      • to apply it, all the default repositories have to be redeclared (declaring a single repository disables all the defaults), which means duplicating their URLs and default properties in xwiki.properties, and keeping them up to date afterwards.

      This was needed on xwiki.org to work around XCOMMONS-3919.

      Proposal

      Apply the extension.repositories.<id>.* properties to the default repositories too, when their id matches.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: