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

Text sequencer does not sequence CSV file correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.3.0.Final, 2.2.1.GA
    • 2.2.0.Final
    • Sequencers
    • None

    Description

      I used Delimited text sequencer to process CSV file (named test2.csv) with following content:
      Test,row,one
      Test,row,two
      Test,row,three

      after publishing file into repository I looked to sequenced file contents on URL: http://127.0.0.1:8080/modeshape-rest/test-jpa/default/items/sequenced/text/delimited/test2.csv, I obtained this JSON string:
      {"properties":

      {"jcr:primaryType":"nt:unstructured"}

      ,"children":["ns001:row","ns001:row[2]","ns001:row[3]"]}

      this means that there should be three rows, when I looked on http://127.0.0.1:8080/modeshape-rest/test-jpa/default/items/sequenced/text/delimited/test2.csv/ns001:row I got this JSON string:
      {"properties":

      {"jcr:primaryType":"nt:unstructured"}

      ,"children":["ns001:column"]}

      but shouldn't there be three columns? I mean on each row there 3 tokens delimited by comma (I am using default delimiter)

      finally on http://127.0.0.1:8080/modeshape-rest/test-jpa/default/items/sequenced/text/delimited/test2.csv/ns001:row/ns001:column I got this JSON string
      {"properties":{"ns001:data":"Test,row,one","jcr:primaryType":"nt:unstructured","jcr:mixinTypes":["ns001:column"]}}

      Shouldn't ns001:data property contain only "Text" token instead of "Text,row,one" ?

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              bbelovic_jira Boris Belovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: