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

Add support for overwritting the configuration from the execution context

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 15.10.5
    • Configuration
    • None
    • Unit
    • Unknown

    Description

      I need to be able to change the value of a configuration parameter at runtime, for a limited period of time, while some code is executed. To give an example, I need to disable the server-side image resize during the PDF export, see XWIKI-21763.

       One simple solution is to implement a ConfigurationSource that stores the values on the execution context, and to modify existing configuration components to check this source first. For this to work we also need to add support for removing a configuration property, of course, without forcing all configuration sources to implement it.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: