Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1170

Value[] getValues() in JcrSingleValueProperty allways throws ValueFormatException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 2.5.0.Beta2
    • JCR
    • None
    • Low

    Description

      In case one needs to get values from a node he needs to use either JcrSingleValueProperty or JcrMultiValueProperty; However, in cases these come back from a wrapper in closed systems, one can't find out this easily, meaning a simple approach to get all Values from a node is to just use: .getValues[] which also works in Jackrabbit; If now one uses modeshape on the same JCR repo he gets into trouble as this error is thrown in case he wants to access it; This is even worse if you one take in mind that the difference between JcrSingleValueProperty and JcrMultiValueProperty is just the sum of properties, leading to the problem that even a JcrMultiValueProperty is once a JcrSingleValueProperty (when size of array is exactly one!);

      I therefore request to allow getValues[] even on JcrSinglValueProperty by just doing a return new Value[]

      {getValue()}

      ; instead of throwing this error;

      Attachments

        Activity

          People

            Unassigned Unassigned
            kbachl K. Bachl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: