You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Torgeir Veimo (JIRA)" <ji...@apache.org> on 2006/12/04 01:13:21 UTC
[jira] Created: (JCR-659) import of multivalue properties with
single value results in incorrect property creation
import of multivalue properties with single value results in incorrect property creation
----------------------------------------------------------------------------------------
Key: JCR-659
URL: http://issues.apache.org/jira/browse/JCR-659
Project: Jackrabbit
Issue Type: Bug
Components: core
Affects Versions: 1.1
Environment: Linux, Tomcat 5.5.20, JDK 1.6.0rc1, both xml file repository and derby db repository.
Reporter: Torgeir Veimo
When importing a file exported with system view, a value of a multivalued property is stored as a singlevalue property. The bug seems to be that for some reason, even if PropDef.isMultiple() is true for a given property, no ValueFormatException is thrown when setting the property as single value.
Workaround:
It works if I change PropInfo.apply() line 136 to
if (va.length == 1 && !def.isMultiple()) {
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (JCR-659) import of multivalue properties with
single value results in incorrect property creation
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-659?page=all ]
Stefan Guggisberg reassigned JCR-659:
-------------------------------------
Assignee: Stefan Guggisberg
> import of multivalue properties with single value results in incorrect property creation
> ----------------------------------------------------------------------------------------
>
> Key: JCR-659
> URL: http://issues.apache.org/jira/browse/JCR-659
> Project: Jackrabbit
> Issue Type: Bug
> Components: core
> Affects Versions: 1.1
> Environment: Linux, Tomcat 5.5.20, JDK 1.6.0rc1, both xml file repository and derby db repository.
> Reporter: Torgeir Veimo
> Assigned To: Stefan Guggisberg
>
> When importing a file exported with system view, a value of a multivalued property is stored as a singlevalue property. The bug seems to be that for some reason, even if PropDef.isMultiple() is true for a given property, no ValueFormatException is thrown when setting the property as single value.
> Workaround:
> It works if I change PropInfo.apply() line 136 to
> if (va.length == 1 && !def.isMultiple()) {
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (JCR-659) import of multivalue properties with
single value results in incorrect property creation
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-659?page=comments#action_12456871 ]
Stefan Guggisberg commented on JCR-659:
---------------------------------------
i was able to reproduce the issue with a node type that defines both a multi-valued named property *and* a residual single-valued property.
e.g.
[app:foo] > nt:unstructered
- app:names (string) multiple
the issue can also be reproduced by adding a mixin (with a multi-valued prop) to a node that includes nt:unstructered.
> import of multivalue properties with single value results in incorrect property creation
> ----------------------------------------------------------------------------------------
>
> Key: JCR-659
> URL: http://issues.apache.org/jira/browse/JCR-659
> Project: Jackrabbit
> Issue Type: Bug
> Components: core
> Affects Versions: 1.1
> Environment: Linux, Tomcat 5.5.20, JDK 1.6.0rc1, both xml file repository and derby db repository.
> Reporter: Torgeir Veimo
> Assigned To: Stefan Guggisberg
>
> When importing a file exported with system view, a value of a multivalued property is stored as a singlevalue property. The bug seems to be that for some reason, even if PropDef.isMultiple() is true for a given property, no ValueFormatException is thrown when setting the property as single value.
> Workaround:
> It works if I change PropInfo.apply() line 136 to
> if (va.length == 1 && !def.isMultiple()) {
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (JCR-659) import of multivalue properties with
single value results in incorrect property creation
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-659?page=all ]
Stefan Guggisberg resolved JCR-659.
-----------------------------------
Fix Version/s: 1.2
Resolution: Fixed
fixed in svn r484644
thanks for reporting this issue!
> import of multivalue properties with single value results in incorrect property creation
> ----------------------------------------------------------------------------------------
>
> Key: JCR-659
> URL: http://issues.apache.org/jira/browse/JCR-659
> Project: Jackrabbit
> Issue Type: Bug
> Components: core
> Affects Versions: 1.1
> Environment: Linux, Tomcat 5.5.20, JDK 1.6.0rc1, both xml file repository and derby db repository.
> Reporter: Torgeir Veimo
> Assigned To: Stefan Guggisberg
> Fix For: 1.2
>
>
> When importing a file exported with system view, a value of a multivalued property is stored as a singlevalue property. The bug seems to be that for some reason, even if PropDef.isMultiple() is true for a given property, no ValueFormatException is thrown when setting the property as single value.
> Workaround:
> It works if I change PropInfo.apply() line 136 to
> if (va.length == 1 && !def.isMultiple()) {
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (JCR-659) import of multivalue properties with
single value results in incorrect property creation
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-659?page=all ]
Jukka Zitting updated JCR-659:
------------------------------
Affects Version/s: 1.1.1
> import of multivalue properties with single value results in incorrect property creation
> ----------------------------------------------------------------------------------------
>
> Key: JCR-659
> URL: http://issues.apache.org/jira/browse/JCR-659
> Project: Jackrabbit
> Issue Type: Bug
> Components: core
> Affects Versions: 1.1, 1.1.1
> Environment: Linux, Tomcat 5.5.20, JDK 1.6.0rc1, both xml file repository and derby db repository.
> Reporter: Torgeir Veimo
> Assigned To: Stefan Guggisberg
> Fix For: 1.2
>
>
> When importing a file exported with system view, a value of a multivalued property is stored as a singlevalue property. The bug seems to be that for some reason, even if PropDef.isMultiple() is true for a given property, no ValueFormatException is thrown when setting the property as single value.
> Workaround:
> It works if I change PropInfo.apply() line 136 to
> if (va.length == 1 && !def.isMultiple()) {
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira