Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15225

Indexing of empty integer attribute causes an error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • None
    • 4.0.0
    • None
    • Operating System:
      PHP Version: 5.1.5
      Database and version: MySQL
      Browser (and version):

    Description

      When indexing a non-required and empty integer attribute, an error occures. Solr dump:

      SEVERE: org.apache.solr.common.SolrException: Error while creating field 'attr_width_of_parcel_si

      {type=sint,properties=indexed,stored,omitNorms,multiValued,sortMissingLast}

      ' from value ''
      ...
      Caused by: java.lang.NumberFormatException: For input string: ""
      ...

      Steps to reproduce

      Create a class with non-required integer attribute
      Create a new object of that class, empty the attribute (clear out default value)
      When indexing new object, an error occures and the object is not inserted to index.

      Attachments

        Activity

          People

            unknown unknown
            igor123 igor123
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: