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
Repository Revision Date User Message
ASF #387211 Mon Mar 20 13:35:05 UTC 2006 stefan JCR-363: Node.setProperty(String, ...) implementation not according to the specification
Files Changed
MODIFY /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
MODIFY /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemManager.java

Repository Revision Date User Message
ASF #387311 Mon Mar 20 21:09:40 UTC 2006 jukka 1.0: Merged revision 387211: JCR-363: Node.setProperty(String, ...) implementation not according to the specification
Files Changed
MODIFY /incubator/jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemManager.java
MODIFY /incubator/jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java