Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-611

An extension configured with an external file should not crash if the file doesn't exist

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None

      Extensions can be configured with an external XML file (and not "inline"), as follows:

      <extension-point id="org.ametys.web.inputdata.InputDataExtensionPoint"
                       class="org.ametys.web.inputdata.InputDataExtensionPoint"
                       config="/WEB-INF/param/inputdata.xml">
      </extension-point>
      

      When configured this way, the extension requires the file to exist, or it crashes when the application initializes.
      In my opinion, it should not crash, and the configure(Configuration conf) method should be passed an "empty" Configuration object. The Component itself should decide if it has enough input to be correctly configured, and throw a ConfigurationException if it doesn't, as it's done with "inline" configuration.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: