You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Craig L Russell <cr...@oracle.com> on 2015/11/19 20:40:22 UTC

Property svn:mime-type

I don’t know what to make of this issue. When I was looking at https://svn.apache.org/repos/private/documents/iclas/ and selected the link for 	• james-clampffer.pdf The file downloaded instead of loading in a browser window. So I looked in svn to see what the difference was between this and others.

I changed the svn:mime-type to application/pdf and committed the change. Now it behaves like others.

Is this a bug in secretary assistant tool? 

[CraigRussell:~/apache/documents/iclas] clr% svn proplist james-mason.pdf -v
Properties on 'james-mason.pdf':
  svn:mime-type
    application/pdf
[CraigRussell:~/apache/documents/iclas] clr% svn proplist james-clampffer.pdf
Properties on 'james-clampffer.pdf':
  email:addr
  email:id
  email:name
  email:subject
  svn:mime-type
[CraigRussell:~/apache/documents/iclas] clr% svn propset svn:mime-type application/pdf !$
svn propset svn:mime-type application/pdf james-clampffer.pdf
property 'svn:mime-type' set on 'james-clampffer.pdf'
[CraigRussell:~/apache/documents/iclas] clr% svn diff
Index: james-clampffer.pdf
===================================================================
--- james-clampffer.pdf	(revision 63427)
+++ james-clampffer.pdf	(working copy)

Property changes on: james-clampffer.pdf
___________________________________________________________________
Modified: svn:mime-type
## -1 +1 ##
-file/pdf
\ No newline at end of property
+application/pdf
\ No newline at end of property
[CraigRussell:~/apache/documents/iclas] clr% svn commit -m "Update mime-type"
Sending        james-clampffer.pdf

Committed revision 63570.

Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@oracle.com
P.S. A good JDO? O, Gasp!


Re: Property svn:mime-type

Posted by Sam Ruby <ru...@intertwingly.net>.
On Thu, Nov 19, 2015 at 2:40 PM, Craig L Russell
<cr...@oracle.com> wrote:
> I don’t know what to make of this issue. When I was looking at https://svn.apache.org/repos/private/documents/iclas/ and selected the link for  • james-clampffer.pdf The file downloaded instead of loading in a browser window. So I looked in svn to see what the difference was between this and others.
>
> I changed the svn:mime-type to application/pdf and committed the change. Now it behaves like others.
>
> Is this a bug in secretary assistant tool?

Bug?  (missing) Feature?  Hard to tell. :-)

Excerpts from the original email:

--------------------
Subject: ICLA form submission
Date: Tue, 4 Aug 2015 14:18:20 +0000

Content-Type: file/pdf; name="icla.pdf"
Content-Description: icla.pdf
--------------------

The secmail tool stored it with the mime type as indicated.  The
workbench move the file from documents/received to documents/iclas.

- Sam Ruby