www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Gruno (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (INFRA-8292) Cannot create XML file with pasted content
Date Fri, 05 Sep 2014 11:36:29 GMT

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

Daniel Gruno reassigned INFRA-8292:
-----------------------------------

    Assignee: Daniel Gruno

> Cannot create XML file with pasted content
> ------------------------------------------
>
>                 Key: INFRA-8292
>                 URL: https://issues.apache.org/jira/browse/INFRA-8292
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: CMS
>         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)

Mime
View raw message