Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Labels:None
-
Environment:* phpcrodm #fc47314043805c1b8d1e998d534abec75874a8e5
* jackalope #6de09e160a2d56b34d34e8120a254fbe46892fb7
* jackalope-jackrabbit #3c4fb61bf0c0664d09ef520683842e6426c033e0
Description
When a Document contains a reference field (tested with @ReferenceMany(strategy="hard"), @ReferenceOne(strategy="hard")) and a "jcr:created" field in its metadata, then phpcr-odm try to update the protected field (jcr:created) to NULL on persist.
Jackalope throws the following exception :
[PHPCR\NodeType\ConstraintViolationException]
Can't remove the protected property: jcr:created
Activity
damien pitard
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Summary | Can't remove the protected property: jcr:created | Exception "Can't remove the protected property: jcr:created" |
damien pitard
made changes -
| Description |
When a Document is referenced into another, phpcrodm try to set the fields jcr:created and jcr:createBy of the referenced document to NULL. Jackalope throws the following exception :
[PHPCR\NodeType\ConstraintViolationException] Can't remove the protected property: jcr:created |
When a Document is referenced into another, phpcrodm try to set the fields jcr:created and jcr:createBy of the referenced document to NULL on persist.
Then jackalope throws the following exception : [PHPCR\NodeType\ConstraintViolationException] Can't remove the protected property: jcr:created |
damien pitard
made changes -
| Summary | Exception "Can't remove the protected property: jcr:created" | Exception "Can't remove the protected property: jcr:created" on persist |
| Description |
When a Document is referenced into another, phpcrodm try to set the fields jcr:created and jcr:createBy of the referenced document to NULL on persist.
Then jackalope throws the following exception : [PHPCR\NodeType\ConstraintViolationException] Can't remove the protected property: jcr:created |
When a Document contains a multiple hard reference field (tested with @ReferenceMany(strategy="hard")) and a "jcr:created" field in its metadata, then phpcr-odm try to update the protected field (jcr:created) to NULL on persist.
Jackalope throws the following exception : [PHPCR\NodeType\ConstraintViolationException] Can't remove the protected property: jcr:created |
damien pitard
made changes -
| Description |
When a Document contains a multiple hard reference field (tested with @ReferenceMany(strategy="hard")) and a "jcr:created" field in its metadata, then phpcr-odm try to update the protected field (jcr:created) to NULL on persist.
Jackalope throws the following exception : [PHPCR\NodeType\ConstraintViolationException] Can't remove the protected property: jcr:created |
When a Document contains a reference field (tested with @ReferenceMany(strategy="hard"), @ReferenceOne(strategy="hard")) and a "jcr:created" field in its metadata, then phpcr-odm try to update the protected field (jcr:created) to NULL on persist.
Jackalope throws the following exception : [PHPCR\NodeType\ConstraintViolationException] Can't remove the protected property: jcr:created |
Lukas Kahwe
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=PHPCR-78, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
here's a functional test to reproduce the bug https://github.com/pitpit/phpcr-odm/commit/a7e1ba83d78771599181d2dee3c03c5163cf26e7