On 2 September 2014 11:18, sebb <seb...@gmail.com> wrote: > On 2 September 2014 04:59, Stefan Bodewig <bode...@apache.org> wrote: >> On 2014-09-02, sebb wrote: >> >>>> Propchange: commons/cms-site/trunk/content/xdoc/security.xml >>>> ------------------------------------------------------------------------------ >>>> svn:mime-type = application/xml >> >> >>> -1 (for the property) >> >>> SVN treats that mime-type as binary; either drop it or use text/xml instead >> >> This is what the CMS seems to do when you create a new file via the web UI. > > There's something very odd going on. > I created an empty .xml file via CMS and it is OK. > But when I try to create another file via browse/upload it barfs: > > Error > > Illegal target for the requested operation: File > '...test-svnprop3.xml' has binary mime type property at > /usr/local/cms/webgui/lib/ASF/CMS/WC/Add.pm line 143 > > This applies to uploading from both an existing xml file and a new test file. > [But I guess CMS does not know these are existing files]. > > I wonder if the issue is that I'm using MacOS / Firefox? > What are you using? > > I'll try and investigate further and raise a bug with Infra.
Raised https://issues.apache.org/jira/browse/INFRA-8292 about the Add.pm error. Maybe fixing this will fix the error you encountered as well, or maybe it is a separate error. > Turns out that the CMS has created test-svnprop3.xml and added the > mime-type application/xml so the error message is to be expected. > Though of course it should not create the empty entry with that > property. > > Huh? I don't now seem to be able to create an empty xml file without > triggering the issue. > > And it's odd that you were able to create the file with the wrong > settings, given that I get an error from Add.pm > > How did you create the new xml file? > >> Fixed. > > Thanks. > >> Stefan >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org >> For additional commands, e-mail: dev-h...@commons.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org