Issue Details (XML | Word | Printable)

Key: JCR-363
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Stefan Guggisberg
Reporter: Stefan Guggisberg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jackrabbit Content Repository

Node.setProperty(String, ...) implementation not according to the specification

Created: 20/Mar/06 06:59 PM   Updated: 29/Mar/06 02:38 AM
Return to search
Component/s: JCR API
Affects Version/s: 0.9
Fix Version/s: 1.0

Time Tracking:
Not Specified

Environment: svn r387181

Resolution Date: 20/Mar/06 09:35 PM


 Description  « Hide
to illustrate the issue assume the following property definition:

name: someText
type: String
non-mandatory
non-autocreate

the following call would throw a ConstraintViolationException
if the property doesn't exist yet:

node.setProperty("someText", 12345);

the rules used to find an applicable definition in this case are too strict.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Stefan Guggisberg added a comment - 20/Mar/06 09:35 PM
fixed in svn r387211

Jukka Zitting added a comment - 20/Mar/06 09:50 PM
Should I merge this with 1.0? How high is the chance of unexpected regressions caused by r387211?

Stefan Guggisberg added a comment - 20/Mar/06 10:23 PM
i targeted 1.0 as this is imo a major bug, causing jsr170 compliancy issues.

i tested the fix and found no problems whatsoever. however
it's a relatively small but non-trivial change. judging the risk
of unexpected regressions is very difficult.

maybe we should target 1.0.1 instead.

Jukka Zitting added a comment - 20/Mar/06 10:39 PM
OK, thanks. I'll merge it in 1.0 on the basis of JSR 170 compliancy. If it does cause a problem, then we can always release a fix in 1.0.1. I'd rather err with a bug in 1.0 than an API compliancy issue, especially as the change seems to work just fine for me as well.

Jukka Zitting added a comment - 29/Mar/06 02:38 AM
Merged to 1.0 in revision 387311.