You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tomek Dabrowski (JIRA)" <ji...@apache.org> on 2007/11/21 17:12:43 UTC

[jira] Created: (JCR-1227) Restore of empty multivalue property always changes property type to String

Restore of empty multivalue property always changes property type to String
---------------------------------------------------------------------------

                 Key: JCR-1227
                 URL: https://issues.apache.org/jira/browse/JCR-1227
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 1.3.3
            Reporter: Tomek Dabrowski


When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.

Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-1227) Restore of empty multivalue property always changes property type to String

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-1227.
--------------------------------

    Resolution: Fixed

Fixed slightly differently in revision 628281 and merged to the 1.4 branch in revision 628282.

Thanks!

> Restore of empty multivalue property always changes property type to String
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1227
>                 URL: https://issues.apache.org/jira/browse/JCR-1227
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, versioning
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.4
>            Reporter: Tomek Dabrowski
>            Assignee: Jukka Zitting
>             Fix For: 1.4.1
>
>         Attachments: restoreMultvalueProp.patch
>
>
> When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.
> Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1227) Restore of empty multivalue property always changes property type to String

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-1227:
-------------------------------

    Fix Version/s: 1.3.4

Merged to the 1.3 branch in revision 643423.

> Restore of empty multivalue property always changes property type to String
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1227
>                 URL: https://issues.apache.org/jira/browse/JCR-1227
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, versioning
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.4
>            Reporter: Tomek Dabrowski
>            Assignee: Jukka Zitting
>             Fix For: core 1.4.1, 1.3.4
>
>         Attachments: restoreMultvalueProp.patch
>
>
> When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.
> Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1227) Restore of empty multivalue property always changes property type to String

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Guggisberg updated JCR-1227:
-----------------------------------

    Component/s:     (was: jackrabbit-core)
                 versioning

> Restore of empty multivalue property always changes property type to String
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1227
>                 URL: https://issues.apache.org/jira/browse/JCR-1227
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: versioning
>    Affects Versions: 1.3.3, 1.4
>            Reporter: Tomek Dabrowski
>         Attachments: restoreMultvalueProp.patch
>
>
> When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.
> Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1227) Restore of empty multivalue property always changes property type to String

Posted by "Tomek Dabrowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek Dabrowski updated JCR-1227:
---------------------------------

    Attachment: restoreMultvalueProp.patch

> Restore of empty multivalue property always changes property type to String
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1227
>                 URL: https://issues.apache.org/jira/browse/JCR-1227
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.3.3
>            Reporter: Tomek Dabrowski
>         Attachments: restoreMultvalueProp.patch
>
>
> When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.
> Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1227) Restore of empty multivalue property always changes property type to String

Posted by "Przemo Pakulski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Przemo Pakulski updated JCR-1227:
---------------------------------

    Affects Version/s: 1.4

> Restore of empty multivalue property always changes property type to String
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1227
>                 URL: https://issues.apache.org/jira/browse/JCR-1227
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.3.3, 1.4
>            Reporter: Tomek Dabrowski
>         Attachments: restoreMultvalueProp.patch
>
>
> When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.
> Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1227) Restore of empty multivalue property always changes property type to String

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-1227:
-------------------------------

          Component/s: jackrabbit-core
    Affects Version/s: 1.0
                       1.0.1
                       1.1
                       1.1.1
                       1.2.1
                       1.2.2
                       1.2.3
                       1.3
                       1.3.1
        Fix Version/s: 1.4.1
             Assignee: Jukka Zitting

> Restore of empty multivalue property always changes property type to String
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1227
>                 URL: https://issues.apache.org/jira/browse/JCR-1227
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, versioning
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.4
>            Reporter: Tomek Dabrowski
>            Assignee: Jukka Zitting
>             Fix For: 1.4.1
>
>         Attachments: restoreMultvalueProp.patch
>
>
> When you do a restore of  empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.
> Attached patch with test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.