Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-39

LuceneCatalogFactory default validation layer class is incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1-incubating
    • Component/s: file manager
    • Labels:
      None

      Description

      The following is what is used if the System property is not set for the validation layer:

      String validationLayerFactoryClass = System.getProperty("filemgr.validationLayer.factory","org.apache.oodt.cas.validation.DataSourceValidationLayerFactory");

      First the default class does not exist "org.apache.oodt.cas.validation.DataSourceValidationLayerFactory" and should be changed to "org.apache.oodt.cas.filemgr.validation.DataSourceValidationLayerFactory". Actually this probably would be better as the following:

      String validationLayerFactoryClass = System.getProperty("filemgr.validationLayer.factory", org.apache.oodt.cas.filemgr.validation.XMLValidationLayerFactory.class.getName());

      This way the compile time check will be made. As noted above I'm thinking the default for LuceneCatalogFactory should be XML based one and not the DataSource one. Since it was already broken this should not affect backwards compatibility.

        Attachments

          Activity

            People

            • Assignee:
              chrismattmann Chris A. Mattmann
              Reporter:
              pramirez Paul Ramirez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: