On 08/26/2014 01:23 PM, WEKU wrote: > I think were on a good way. The opened PDF is Type: application/pdf and the > downloaded pdf is shown as Type: text/plain. > > What do i have to do, that all pdfs are Type: application/pdf? >
slowly my memory came back: it is a feature ;) http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki52#HChoosingwhichtypesofattachmentscanbedisplayedinline28Security29 It seems in either PDF's are blacklisted in your xwiki.properties, or the blacklist "attachment.download.blacklist" is empty; in that case you will have to maintain a whitelist (attachment.download.whitelist property) If you are the main admin, you have "programming rights", and these security checks are bypassed; that is why it works in these cases. Maybe that explains the issue? The actual issue is about "displaying inline", which is *not* what you asked, but I see in the code of the DownloadAction that this property fiddles with the "Content-Disposition" header. Not sure why this changes the "Content-Type, however. Anyway, at least for testing, can you set the attachment.download.blacklist=text/html,text/javascript and make sure the attachment.download.whitelist property is not set in the xwiki.propertuies, and check if this makes a difference ? Clemens _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
