pimcore / generic-data-index-bundle

Other
4 stars 4 forks source link

Failed to parse field of type [date] with format [strict_date] #235

Closed morgannilsson closed 3 weeks ago

morgannilsson commented 4 weeks ago

Version: Pimcore 2024.3, generic-data-index-bundle: 1.2.1

Steps to reproduce:

/**
 * Fields Summary:
 * - dateOfBirth [date]

mysql> select * from object_brick_store_dtypepersonalid_document where id = 53\G
                id: 53
         fieldname: docType
       dateOfBirth: 2024-10-25

Result:

{
    "failures": [
        {
            "index": "pimcore_document-even",
            "id": "53",
            "cause": {
                "type": "mapper_parsing_exception",
                "reason": "failed to parse field [standard_fields.docType.DTypePersonalID.dateOfBirth] of type [date] in document with id '53'. Preview of field's value: '1729807200'",
                "caused_by": {
                    "type": "illegal_argument_exception",
                    "reason": "failed to parse date field [1729807200] with format [strict_date]",
                    "caused_by": {
                        "type": "date_time_parse_exception",
                        "reason": "Text '1729807200' could not be parsed at index 0"
                    }
                }
            },
            "status": 400
        }
    ]
}
morgannilsson commented 4 weeks ago

The error also occurs on Date fields on objects.

lukmzig commented 3 weeks ago

@morgannilsson thank you for reporting, I am closing this issue as this is a duplicate of https://github.com/pimcore/generic-data-index-bundle/issues/233

morgannilsson commented 3 weeks ago

I think my issue is resolved but manually saving classes. Reported in https://github.com/pimcore/pimcore/issues/17776