You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Berry van Halderen (JIRA)" <ji...@apache.org> on 2010/11/15 12:05:15 UTC

[jira] Created: (JCR-2812) Allow whitespaces in base64 encoded binary fields of XML import files

Allow whitespaces in base64 encoded binary fields of XML import files
---------------------------------------------------------------------

                 Key: JCR-2812
                 URL: https://issues.apache.org/jira/browse/JCR-2812
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-core
    Affects Versions: 2.1.2, 2.2.0
            Reporter: Berry van Halderen
            Priority: Minor
             Fix For: 2.2.0
         Attachments: patch

When importing files using Session.importXML(), the Binary property values are Base64 encoded.  However you cannot put whitespaces in them, and XML files with binaries in them become very long lines.  The files are more manageable if whilespaces could be put in them, as is common to do in base base64 encoded files.

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


unsubscribe

Posted by Sena Gbeckor-Kove <se...@gmail.com>.
On 15 Nov 2010, at 12:05, Berry van Halderen (JIRA) wrote:

> 
>     [ https://issues.apache.org/jira/browse/JCR-2812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Berry van Halderen updated JCR-2812:
> ------------------------------------
> 
>    Attachment: patch
> 
> This is a very simple, but effective way just to strip out whitespaces before the actual import of the Binary properties.
> Patch against trunk revision 1023682, but equally applicable to 2.1 or earlier versions.
> 
> 
>> Allow whitespaces in base64 encoded binary fields of XML import files
>> ---------------------------------------------------------------------
>> 
>>                Key: JCR-2812
>>                URL: https://issues.apache.org/jira/browse/JCR-2812
>>            Project: Jackrabbit Content Repository
>>         Issue Type: Improvement
>>         Components: jackrabbit-core
>>   Affects Versions: 2.1.2, 2.2.0
>>           Reporter: Berry van Halderen
>>           Priority: Minor
>>            Fix For: 2.2.0
>> 
>>        Attachments: patch
>> 
>> 
>> When importing files using Session.importXML(), the Binary property values are Base64 encoded.  However you cannot put whitespaces in them, and XML files with binaries in them become very long lines.  The files are more manageable if whilespaces could be put in them, as is common to do in base base64 encoded files.
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 


[jira] Updated: (JCR-2812) Allow whitespaces in base64 encoded binary fields of XML import files

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

Berry van Halderen updated JCR-2812:
------------------------------------

    Attachment: patch

This is a very simple, but effective way just to strip out whitespaces before the actual import of the Binary properties.
Patch against trunk revision 1023682, but equally applicable to 2.1 or earlier versions.


> Allow whitespaces in base64 encoded binary fields of XML import files
> ---------------------------------------------------------------------
>
>                 Key: JCR-2812
>                 URL: https://issues.apache.org/jira/browse/JCR-2812
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 2.1.2, 2.2.0
>            Reporter: Berry van Halderen
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: patch
>
>
> When importing files using Session.importXML(), the Binary property values are Base64 encoded.  However you cannot put whitespaces in them, and XML files with binaries in them become very long lines.  The files are more manageable if whilespaces could be put in them, as is common to do in base base64 encoded files.

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


[jira] Updated: (JCR-2812) Allow whitespaces in base64 encoded binary fields of XML import files

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

Jukka Zitting updated JCR-2812:
-------------------------------

      Component/s:     (was: jackrabbit-core)
                   jackrabbit-jcr-commons
    Fix Version/s: 2.1.3

Merged to the 2.1 branch in revision 1040130.

> Allow whitespaces in base64 encoded binary fields of XML import files
> ---------------------------------------------------------------------
>
>                 Key: JCR-2812
>                 URL: https://issues.apache.org/jira/browse/JCR-2812
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>    Affects Versions: 2.1.2, 2.2.0
>            Reporter: Berry van Halderen
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 2.1.3, 2.2.0
>
>         Attachments: patch
>
>
> When importing files using Session.importXML(), the Binary property values are Base64 encoded.  However you cannot put whitespaces in them, and XML files with binaries in them become very long lines.  The files are more manageable if whilespaces could be put in them, as is common to do in base base64 encoded files.

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


[jira] Resolved: (JCR-2812) Allow whitespaces in base64 encoded binary fields of XML import files

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

Jukka Zitting resolved JCR-2812.
--------------------------------

    Resolution: Fixed
      Assignee: Jukka Zitting

An even simpler and more general fix is to modify the Base64 utility class to ignore whitespace characters. Done in revision 1039423.

> Allow whitespaces in base64 encoded binary fields of XML import files
> ---------------------------------------------------------------------
>
>                 Key: JCR-2812
>                 URL: https://issues.apache.org/jira/browse/JCR-2812
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 2.1.2, 2.2.0
>            Reporter: Berry van Halderen
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: patch
>
>
> When importing files using Session.importXML(), the Binary property values are Base64 encoded.  However you cannot put whitespaces in them, and XML files with binaries in them become very long lines.  The files are more manageable if whilespaces could be put in them, as is common to do in base base64 encoded files.

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