Guest?
 
Project
SVNKit
Priority
Normal
Type
Bug
State
Fixed
Assignee
Alexander Kitaev
Subsystem
Unknown subsystem
Affected versions
1.3.5
Fix versions
No Fix versions
Fixed in build
No Fixed in build
  • Created by   Mike Allen
    13 months ago (21 Mar 2012 05:49)
  • Updated by   Dmitry Pavlenko
    12 months ago (08 May 2012 13:21)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I noticed in a recent update that it has become impossible to set a svn:eol-style=<native|CR|CRLF|LF> property at the same time as the svn:mime-type=application/xml property is set.

XML files, whose official MIME type is "application/xml", are text files - but SVNKit now believes that they are binary, and gives this error message (depending upon which is set first):

Set properties was failed.
svn: File 'c:\somepath\somefile.xml' has svn:eol-style property set and thus cannot have binary mime type.


or

Set properties was failed.
svn: File 'c:\somepath\somefile.xml' has binary mime type property


Since when has "application/xml" been a binary mime type? I understand that mime-types such as "application/octet-stream" represent a binary files, as one example, but not all. Can you refine your filter?
Comments (5)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Dmitry Pavlenko
  Dmitry Pavlenko
03 May 2012 17:42
12 months ago
TODO: look at
libsvn_wc/props.c : svn_wc_canonicalize_svn_prop
and
SVNPropertiesManager#validatePropertyValue
Dmitry Pavlenko
  Dmitry Pavlenko
03 May 2012 17:43
12 months ago
Wrote to subversion mailing list http://svn.haxx.se/dev/archive-2012-05/0060.shtml
Dmitry Pavlenko
  Dmitry Pavlenko
03 May 2012 18:47
12 months ago
According to the mailing list, the behaviour is expected.
Related Changes
Resolved Date
12 months ago (03 May 2012 18:47)
State
SubmittedFixed
Dmitry Pavlenko
  Dmitry Pavlenko
03 May 2012 18:53
12 months ago
SVN and SVNKit consider mime-type text if it starts with "text/", otherwise — as binary. You can use text/xml for your case.
Dmitry Pavlenko
  Dmitry Pavlenko
08 May 2012 13:21
12 months ago
To set the contradicting properties together you can call SvnSetProperty#setForce(true).
Apply Command

Command Preview: