You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Chris Lambertus (JIRA)" <ji...@apache.org> on 2016/02/28 06:58:18 UTC

[jira] [Resolved] (INFRA-8292) Cannot create XML file with pasted content

     [ https://issues.apache.org/jira/browse/INFRA-8292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Lambertus resolved INFRA-8292.
------------------------------------
    Resolution: Won't Fix

Patches welcome for CMS, but Infra will not be updating the CMS codebase at this time.

> Cannot create XML file with pasted content
> ------------------------------------------
>
>                 Key: INFRA-8292
>                 URL: https://issues.apache.org/jira/browse/INFRA-8292
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>         Environment: MacOS/X Firefox
>            Reporter: Sebb
>            Assignee: Daniel Gruno
>
> There's something amiss with the CMS when creating XML files.
> Steps to reproduce:
> 1. Browse to commons.apache.org/net
> 2. Start CMS
> 3. Edit this directory
> 4. Add new file or directory, type file name test1.xml, press enter
> 5. Do not add any content
> 6. Press submit
> 7. Successully added with svn:eol-style: native property
> Now add a file with some content
> A. Edit this directory
> B. Add new file or directory, type file name test1.xml, press enter
> C. Add the following content
> <?xml version="1.0"?>
> <!-- Locally pasted content -->
> D. Press submit
> CMS reports the following error:
> Error
> Illegal target for the requested operation: File '/usr/local/cms/wc/commons/sebb-<redacted>/trunk/test2.xml' has binary mime type property at /usr/local/cms/webgui/lib/ASF/CMS/WC/Add.pm line 143
> The file Diff shows the following:
> Index: trunk/test2.xml
> ===================================================================
> Cannot display: file marked as a binary type.
> svn:mime-type = application/xml
> Index: trunk/test2.xml
> ===================================================================
> --- trunk/test2.xml (revision 0)
> +++ trunk/test2.xml (working copy)
> Property changes on: trunk/test2.xml
> ___________________________________________________________________
> Added: svn:mime-type
> ## -0,0 +1 ##
> +application/xml
> \ No newline at end of property
> Note that the mime-type is incorrect.
> It should either be omitted, or it should be text/xml
> Possibly eol-style should be set to native
> Strangely, if only a single line is pasted into the form, the file is created correctly:
> Index: trunk/test3.xml
> ===================================================================
> --- trunk/test3.xml (revision 0)
> +++ trunk/test3.xml (working copy)
> @@ -0,0 +1 @@
> +<!-- pasted comment -->
> \ No newline at end of file
> Property changes on: trunk/test3.xml
> ___________________________________________________________________
> Added: svn:eol-style
> ## -0,0 +1 ##
> +native
> \ No newline at end of property



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)