Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19171

Better message in case of error in resources bundles configuration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 8.10
    • Component/s: Themes (deprecated)

      Description

      The following error when contributing resources to a bundle :

      <?xml version="1.0"?>
      <component name="my.comp">
      
       <require>org.nuxeo.theme.nuxeo.webapp</require>
      
        <extension target="org.nuxeo.ecm.platform.WebResources" point="bundles">
          <bundle name="nuxeo_includes">
            <resources append="true">
              <resource name="myresource.js"></resource>
             </resources>
          </bundle>
        </extension>
      
      </component>
      

      instead of:

          <bundle name="nuxeo_includes">
            <resources append="true">
              <resource>myresource.js</resource>
             </resources>
          </bundle>
      
      

      will lead to:

      10:56:18,761 ERROR [WebResourceManagerImpl] Could not resolve resource '' on bundle 'nuxeo_includes'
      

      Error should be more explicit (for instance by extracting name and issuing an ERROR/warning at startup)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: