[prev in list] [next in list] [prev in thread] [next in thread]
List: owncloud
Subject: [Owncloud] [OC4] Fileactions broken for full mimetypes
From: Victor Dubiniuk <victor.dubiniuk () gmail ! com>
Date: 2012-06-12 15:49:14
Message-ID: CA+UHsBt-m_GPJ5_B8qhDbiq=qay7BHbd8DOXq+Wrp=Kpmn_LLA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello, ownCloud.
I was investigating the "PDF Viewer is not working" report [1].
And I have found that all default actions specified in full form as
app/mime will not work for OC 4.x since all data-mime attributes are
postfixed with the ; character while actions triggered by mimepart work
fine.
Thus,
* FileActions.register('application/pdf;','Edit','',function(filename){*
*
*
will work but
*FileActions.register('application/pdf','Edit','',function(filename){*
*
*
won't.
For now I have fixed it locally by adding to *FileActions.getDefault *
function
*mime = mime.replace(';', '');*
*
*
as the very first line but I would like to know what is the purpose for
this suffix?
[1] http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-917
---
Best regards,
Victor Dubiniuk
[Attachment #5 (text/html)]
<div>Hello, ownCloud.</div><div><br></div><div>I was investigating the "PDF Viewer is not \
working" report [1].</div><div>And I have found that all default actions specified in full \
form as app/mime will not work for OC 4.x since all data-mime attributes are postfixed with the \
; character while actions triggered by mimepart work fine.</div> \
<div><br></div><div>Thus,</div><div><br></div><blockquote style="margin:0 0 0 \
40px;border:none;padding:0px"><div><b> \
FileActions.register('application/pdf;','Edit','',function(filename){</b></div><div>
<b><br></b></div></blockquote><div>will work but</div><div><br></div><blockquote \
style="margin:0 0 0 40px;border:none;padding:0px"><div><b>FileActions.register('application/pdf','Edit','',function(filename){</b></div>
<div><b><br></b></div></blockquote><div>won't.</div><div><br></div><div>For now I have \
fixed it locally by adding to <b>FileActions.getDefault \
</b>function</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"> \
<div><b>mime = mime.replace(';', \
'');</b></div><div><b><br></b></div></blockquote><div>as the very first line but I \
would like to know what is the <span \
style="font-size:13px;background-color:rgb(255,255,255);font-family:arial,sans-serif;white-space:nowrap">purpose \
for this suffix? </span></div> <div><br></div><div>[1] <a \
href="http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-917">http://bugs.owncloud.org/theb \
uggenie/owncloud/issues/oc-917</a></div><div><br></div><div><br></div><div>---</div><div>Best \
regards,</div> <div>Victor Dubiniuk</div><div><br></div><br>
_______________________________________________
Owncloud mailing list
Owncloud@kde.org
https://mail.kde.org/mailman/listinfo/owncloud
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic