You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Claus Köll (JIRA)" <ji...@apache.org> on 2006/10/25 11:45:18 UTC

[jira] Created: (JCR-604) After saving over Webdav the jcr:encoding property is deleted

After saving over Webdav the jcr:encoding property is deleted
-------------------------------------------------------------

                 Key: JCR-604
                 URL: http://issues.apache.org/jira/browse/JCR-604
             Project: Jackrabbit
          Issue Type: Bug
          Components: webdav
    Affects Versions: 1.1
            Reporter: Claus Köll


If i add a word file to the repository the property jcr:encoding is under the jcr:content
with a value like UTF-8, 
i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

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

angela resolved JCR-604.
------------------------

    Resolution: Cannot Reproduce

resolving works for me

> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: https://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

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


[jira] Commented: (JCR-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12444633 ] 
            
angela commented on JCR-604:
----------------------------

hm... there was a bug with the jcr:encoding, but i thought, that this has been fixed.
i will check if this was after 1.1

> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12445106 ] 
            
Claus Köll commented on JCR-604:
--------------------------------

hi angela.

i dont know wich mehtod is called if you open the file directly with ms-word and perform a save.
if the bahaviour is not ok according to the specification we should leave the issue open until you clarify it

i set the original encoding property manually. the value utf-8 is only set from a test method because i didnt check 
wheter the property is null on reading the node again.

the other properties will be not changed.

claus


> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12445103 ] 
            
angela commented on JCR-604:
----------------------------

tja... i guess  that resetting the properties upon a PUT that replaces an existing resource is not according to the RFC.
so maybe we should look at this. (still its just an assuption, that it was a PUT and not MOVE of a tmp-file).

did you set the original encoding manually or was this value retrieved from a contenttype header?
what happened to the jcr:mimeType property? 

i'm not against closing this issue, but i'm curious... and i'd like to understand, whether the behaviour you
describe is caused by an misbehaviour of the server. the 'UTF-8' is for sure not correct, but this is a different discussion.

regards
angela


> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12444631 ] 
            
Julian Reschke commented on JCR-604:
------------------------------------

As far as I understand, the jcr:encoding property only makes sense if the mime type is "text/*". As this isn't the case for Word files, everything seems to be fine.

That being said, the description of the property in the specification probably could be improved.


> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12445096 ] 
            
Claus Köll commented on JCR-604:
--------------------------------

hi angela,

first thanks for the fast response. i think the comment from julian is right. i dont have thought about that
word files do not have a encoding type. 
i didnt knew that all properties will be reseted so the behaviour is ok. i change my code to check if there is a encoding property.

thanks 
claus

> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12444652 ] 
            
angela commented on JCR-604:
----------------------------

the bug i had in mind was fixed last year ;)... and affected the export of properties.

so, i'm wondering what exactly happens.
i could image, that the PUT (is it a PUT??) replacing the existing word file resource does not send the
content-type again. if i'm not mistaken, the DefaultHandler always resets all properties even if the node existed before. this also includes the removal of properties if the new value is 'null'.

claus, would you mind verifing this  in order to help understand, if my guess is correct? alternatively you may attach the conversation to this issue, so i can see, what exactly happens.

thanks
angela



> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-604?page=comments#action_12445097 ] 
            
Claus Köll commented on JCR-604:
--------------------------------

i think we can close the issue ..
thanks
claus

> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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-604) After saving over Webdav the jcr:encoding property is deleted

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-604?page=all ]

angela reassigned JCR-604:
--------------------------

    Assignee: angela

> After saving over Webdav the jcr:encoding property is deleted
> -------------------------------------------------------------
>
>                 Key: JCR-604
>                 URL: http://issues.apache.org/jira/browse/JCR-604
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1
>            Reporter: Claus Köll
>         Assigned To: angela
>
> If i add a word file to the repository the property jcr:encoding is under the jcr:content
> with a value like UTF-8, 
> i modify the word file over webdav then the property is deleted.

-- 
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