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

Error whiel executing : SELECT * FROM Document ORDER BY modificationDate DESC

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0 GA
    • Component/s: Query & PageProvider
    • Environment:
      Windows Eclipse.

      Description

      When Running the NXQL "SELECT * FROM Document ORDER BY modificationDate DESC", i am having an error on DocumentList Retrieval.
      For what i have investigate, the error is getDocumentModels() method in JCRQueryResult.
      You seem to fetch the schemas list only on the first occurence of your list.
      If we have a folder in first we only retrieve "common" and "dublincore" schema, so it works fine with the other type that contains also these schemas.
      However if the first line of the QueryResult is a file, we also have the "file" schema in our Schema list.
      Therefore later, in the "createDocumentModel(..)" method when we try to popuplate schema on a folder that causes a NullPointerException and when it escalates bring us to the current problem.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: