content/download for anonymous user - pdf download not allowed

Author Message

frank dege

Wednesday 01 December 2004 11:46:39 am

the download of pdf-files or other files is not allowed for users not logged in. i tried to extend the role-settings for the anonymous user but is doesn´t work.
what role-settings do i have to add in oder to allow the download?

the role settings are:

user login Keine Einschränkungen
content read Section( Standard )
content pdf Section( Standard )
rss read Keine Einschränkungen
content read Class( File , Image ) , Section( Media )
content read Subtree( Files ) , Class( File ) , Section( Media )

thanks
frank

Björn Dieding@xrow.de

Thursday 02 December 2004 7:30:14 am

gibt's nicht auch rechte für

content/download
oder
download/ ?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

frank dege

Thursday 02 December 2004 10:04:34 am

hi björn,

unfortunatly "download" or "content" / "download" is not available.

frank

Kåre Køhler Høvik

Thursday 09 December 2004 2:22:46 am

Does anonymous users get a <i>Error kernel 1</i> or other error number ?
Does it work for logged in users ?
What section/subtree/class are the objects which anonymous users can't download ?

Kåre Høvik

frank dege

Friday 10 December 2004 12:22:46 pm

hi,

in the meantime we changed the link ({$media.data_map.file.content.filepath|ezroot}). today i tried to change the code back to

concat("content/download/",$media.data_map.file.contentobject_id,"/",$me.file.id,"/file/",$media.data_map.file.content.original_filename|urlencode)

today it works! i don´t know why. it seems to be a sideeffect that it the reason for that.
thats why i can´t give you a feedback concerning the errornumber.

we tried to download from section media / class file, subtree "media/files/service/faq".

best regards
frank

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:06:49
Script start
Timing: Jan 18 2025 15:06:49
Module start 'layout'
Timing: Jan 18 2025 15:06:49
Module start 'content'
Timing: Jan 18 2025 15:06:50
Module end 'content'
Timing: Jan 18 2025 15:06:50
Script end

Main resources:

Total runtime0.8642 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.5313152.6875
Module start 'layout' 0.00730.0030 742.218839.5234
Module start 'content' 0.01040.8521 781.7422601.4531
Module end 'content' 0.86250.0016 1,383.195312.0781
Script end 0.8641  1,395.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4799160.0003
Check MTime0.00220.2524160.0001
Mysql Total
Database connection0.00070.083010.0007
Mysqli_queries0.802392.8367650.0123
Looping result0.00060.0727630.0000
Template Total0.833296.420.4166
Template load0.00180.208120.0009
Template processing0.831396.202720.4157
Template load and register function0.00030.034810.0003
states
state_id_array0.00070.085610.0007
state_identifier_array0.00200.229920.0010
Override
Cache load0.00160.1803380.0000
Sytem overhead
Fetch class attribute can translate value0.00110.121730.0004
Fetch class attribute name0.00130.147770.0002
XML
Image XML parsing0.00130.145730.0004
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00160.1844210.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs