Bug #354

setProperty() on a Node discards type parameter

Added by Karsten Dambekalns over 7 years ago. Updated about 4 years ago.

Status:Resolved Start date:2008-02-22
Priority:Must have Due date:
Assigned To:Matthias Hörmann % Done:

100%

Category:Property handling
Target version:-

Description

When setting a property on a Node the type parameter is ignored completely!

Associated revisions

Revision b2881f88
Added by Karsten Dambekalns almost 7 years ago

TYPO3CR:
  • the LuceneKeywordAnalyser class no longer uses iconv, fixes #1840
  • removed an unneeded method in Property class
  • implemented validation and best-effort type-conversion for Node->setProperty() [mostly by Matthias Hoermann], fixes #354
    • partial URIs (those without a scheme) are not implemented as there would be much overlap with JCR paths and/or names
    • values of undefined type are just validated with several candidate types and the first match wins, the order(s) of types that are tried might need some fine-tuning later

History

#1 Updated by Karsten Dambekalns almost 7 years ago

  • Category set to Property handling
  • Priority changed from Should have to Must have

#2 Updated by Matthias Hörmann almost 7 years ago

  • Assigned To changed from Karsten Dambekalns to Matthias Hörmann

I am working on this now, validation of most types is done, working on best effort conversion and the other validators

#3 Updated by Karsten Dambekalns almost 7 years ago

  • Target version set to 197

#4 Updated by Karsten Dambekalns almost 7 years ago

  • Subject changed from addProperty() on a Node discards type parameter to setProperty() on a Node discards type parameter

#5 Updated by Karsten Dambekalns almost 7 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1413.

#6 Updated by Robert Lemke about 4 years ago

  • Target version deleted (197)

Also available in: Atom PDF