Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-831

FileManager Explorer Documentation is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 8.2
    • Fix Version/s: None
    • Component/s: Explorer

      Description

      http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewExtensionPoint/org.nuxeo.ecm.platform.filemanager.service.FileManagerService--plugins

      It says that the registration should be done like:

      <plugin class="com.example.MyFileImporterImplementationClass"
              enabled="true" name="myCustomFileImporter" order="30">
              <filter>text/plain</filter>
              <doctype>MyCustomDoctype</doctype>
          </plugin>
      

      Looking at the UT (https://github.com/nuxeo/nuxeo/blob/434093e97825bf7e02578efd428e71f588704f20/nuxeo-services/nuxeo-platform-filemanager-core/src/test/resources/nxfilemanager-test-contribs.xml)

      The docType should be declared at the plugin level, not as a child:

         <plugin name="pluginWithDocType" class="org.nuxeo.ecm.platform.filemanager.FooPlugin" docType="File">
            <filter>text/plain</filter>
            <filter>text/rtf</filter>
          </plugin>
      

      The method explained in the doc does not work.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fvadon Frédéric Vadon
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: