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

Elastic Search indexes crash when using single quotes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 5.5
    • None
    • Query
    • None

    Description

      While using the ElasticSearch index provider, I noticed that the uploading of some JSON documents into ElasticSearch failed, due to an invalid JSON error.

      The issue comes down to the fact the CompactJsonWriter incorrectly escape single-quote characters: https://github.com/ModeShape/modeshape/blob/master/modeshape-schematic/src/main/java/org/modeshape/schematic/internal/document/CompactJsonWriter.java#L174

      See the JSON grammar describing which characters can be escaped: http://www.json.org/string.gif
      The single-quote character is not on this list.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dalbani Damiano Albani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: