[jira] [Updated] (SLING-2215) DavEx servlet creates a jackrabbit/tmp directory

2012-01-19 Thread Jukka Zitting (Updated) (JIRA)

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

Jukka Zitting updated SLING-2215:
-

Attachment: 0001-SLING-2215-DavEx-servlet-creates-a-jackrabbit-tmp-di.patch

It turns out that the jackrabbit/tmp path was hardcoded in the 
SlingDavExServlet class. The code dates back to revision 1199645 of SLING-2275, 
where the temporary folder path got set to ${sling.home}/jackrabbit/tmp to 
avoid the default plain jackrabbit/tmp path.

The attached patch removes the hardcoded path. Nowadays the default is to use 
the standard ${java.io.tmpdir} folder for temporary files.

> DavEx servlet creates a jackrabbit/tmp directory
> 
>
> Key: SLING-2215
> URL: https://issues.apache.org/jira/browse/SLING-2215
> Project: Sling
>  Issue Type: Bug
>Affects Versions: JCR DavEx 1.0.0
>Reporter: Jukka Zitting
>Priority: Minor
> Fix For: JCR DavEx 1.1.0
>
> Attachments: 
> 0001-SLING-2215-DavEx-servlet-creates-a-jackrabbit-tmp-di.patch, 
> 0001-SLING-2215-DavEx-servlet-creates-a-jackrabbit-tmp-di.patch
>
>
> The DavEx servlet bundle added in SLING-1393 doesn't set the "home" and 
> "temp-directory" init parameters of the JcrRemotingServlet base class it uses 
> from Jackrabbit. As a result Jackrabbit defaults to "jackrabbit/tmp" as the 
> location
> for temporary files, and creates such a directory under the current working 
> directory.
> This problem is solved in the latest Jackrabbit trunk as of JCR-3029 where 
> the default location for temporary files was set
> to the standard one defined by the java.io.tmpdir system property, so I guess 
> the easiest way to solve this is simply to
> upgrade the dependency in Sling once the Jackrabbit 2.3.0 release is 
> available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (SLING-1059) Mime Type Detection should use Apache Tika

2011-11-10 Thread Jukka Zitting (Updated) (JIRA)

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

Jukka Zitting updated SLING-1059:
-

Attachment: 0001-SLING-1059-Mime-Type-Detection-should-use-Apache-Tik.patch

Attached a proposed patch that adds a TikaMimeTypeProvider service based on an 
optional tika-core dependency.

> Mime Type Detection should use Apache Tika
> --
>
> Key: SLING-1059
> URL: https://issues.apache.org/jira/browse/SLING-1059
> Project: Sling
>  Issue Type: Improvement
>  Components: Commons
>Affects Versions: Commons Mime 2.1.4
>Reporter: Lars Trieloff
>Priority: Minor
> Attachments: 
> 0001-SLING-1059-Mime-Type-Detection-should-use-Apache-Tik.patch
>
>
> Sling's WebDAV servlet currently has its own Mime Type detection mechanism. 
> Given that Tika is a dependency of the soon to be added Jackrabbit 2.0 we can 
> re-use Tika's Mime Type detection mechanism for greater accuracy and a better 
> maintained list of mimetype-extension-mappings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (SLING-2215) DavEx servlet creates a jackrabbit/tmp directory

2011-11-08 Thread Jukka Zitting (Updated) (JIRA)

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

Jukka Zitting updated SLING-2215:
-

Attachment: 0001-SLING-2215-DavEx-servlet-creates-a-jackrabbit-tmp-di.patch

Proposed patch.

> DavEx servlet creates a jackrabbit/tmp directory
> 
>
> Key: SLING-2215
> URL: https://issues.apache.org/jira/browse/SLING-2215
> Project: Sling
>  Issue Type: Bug
>Affects Versions: JCR DavEx 1.0.0
>Reporter: Jukka Zitting
>Priority: Minor
> Attachments: 
> 0001-SLING-2215-DavEx-servlet-creates-a-jackrabbit-tmp-di.patch
>
>
> The DavEx servlet bundle added in SLING-1393 doesn't set the "home" and 
> "temp-directory" init parameters of the JcrRemotingServlet base class it uses 
> from Jackrabbit. As a result Jackrabbit defaults to "jackrabbit/tmp" as the 
> location
> for temporary files, and creates such a directory under the current working 
> directory.
> This problem is solved in the latest Jackrabbit trunk as of JCR-3029 where 
> the default location for temporary files was set
> to the standard one defined by the java.io.tmpdir system property, so I guess 
> the easiest way to solve this is simply to
> upgrade the dependency in Sling once the Jackrabbit 2.3.0 release is 
> available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira