Re: [Hypercontent-users] download zip facility
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2007-08-30 03:41:56
|
Hi Alex, I tried many possibilities but failed. see my observations below, I dont want everybody to see the configuration directories, that is why I am having those denied=true for those targets, but the thing which I can't understand is as we have the following shouldnt this overide the top level permissions. <permission principal="group:publishers" target="/**/" activity="read"/> <permission principal="group:publishers" target="/**/*.*" activity="read"/> As the above failed I did overide all the denied=true entries in the publisher group to have the read rights, but that also failed. This is what you recommended. In the end I removed all the top denied=true entries, e.g <permission principal="group:anybody" target="/config/**/" activity="read" denied="true"/> but still it fails. If I go to a specific directory and try to zip which has not been restricted, still it shows the same problem. Can you try this in your environment.? I have a feeling something wrong some where, let me know if you want to see my zip.xml Thanks, > It could have something to do with your permissions > setup. HC has > to resolve conflicting permissions in two ways: > those which have a > more specific target, and those which have a more > specific group. It > evaluates them in that order, so that a more > specific target is > honored over a more specific group. In your case, > that means > publishers are inheriting "denied" read permissions > for design, xsl, > config and dtd from group:anybody; however if you > assign > group:publishers read for any of those targets, the > more specific > group of publishers will take precedence. > > Alex > > On Aug 28, 2007, at 8:18 PM, tom tom wrote: > > > Hi Alex, > > > > Yes it is not a empty directory at all, basically > this > > is the very root folder, my intention was to > download > > the entire site as a publisher. > > > > this works fine if I login as a administrator. > > > > But we want to give the download zip feature for > > publishers as well. That is this effort. > > > > > > After the above effort I did login and browse to a > > lower directory and tried to download it but still > it > > doenst show the link but shows the error which I > sent > > previous email. > > > > Any how I am sending my permissions.xml and > zip.xml > > for your reference > > > > permissions.xml > > <permissions> > > <permission principal="group:anybody" > target="/**/*.*" > > activity="read"/> > > <permission principal="group:anybody" > > target="/config/**/*.*" activity="read" > > denied="true"/> > > <permission principal="group:anybody" > > target="/config/**/" activity="read" > denied="true"/> > > <permission principal="group:anybody" > > target="/design/**/" activity="read" > denied="true"/> > > <permission principal="group:anybody" > > target="/xsl/**/" activity="read" denied="true"/> > > <permission principal="group:anybody" > > target="/dtd/**/" activity="read" denied="true"/> > > <permission principal="group:anybody" > > target="/workflow-data/**/" activity="read" > > denied="true"/> > > <permission principal="group:authors" > target="/**/" > > activity="read"/> > > <permission principal="group:authors" > target="/**/*.*" > > activity="create"/> > > <permission principal="group:authors" > target="/**/*.*" > > activity="write"/> > > <permission principal="group:authors" > target="/**/*.*" > > activity="delete"/> > > <permission principal="group:authors" > target="/**/" > > activity="build"/> > > <permission principal="group:authors" > target="/**/*.*" > > activity="build"/> > > <permission principal="group:approvers" > target="/**/" > > activity="read"/> > > <permission principal="group:approvers" > > target="/**/*.*" activity="create"/> > > <permission principal="group:approvers" > > target="/**/*.*" activity="write"/> > > <permission principal="group:approvers" > > target="/**/*.*" activity="delete"/> > > <permission principal="group:approvers" > > target="/**/*.*" activity="approve"/> > > <permission principal="group:publishers" > target="/**/" > > activity="read"/> > > <permission principal="group:publishers" > > target="/**/*.*" activity="read"/> > > <permission principal="group:publishers" > target="/**/" > > activity="publish"/> > > <permission principal="group:publishers" > > target="/**/*.*" activity="publish"/> > > </permissions> > > > > > > zip.xml > > > > <workflow binding="/**/"> > > â > > <event name="download-zip" permissions="read"> > > <variable name="zipper" value="${actor}"/> > > <variable name="href" > > > value="${abs-server-base}/screens/please-wait.html"/> > > <nq q="zipping"/> > > <nq who="${zipper}"/> > > <zip/> > > </event> > > â > > <event name="upload-zip" > permissions="read,write"> > > <variable name="uploader" value="${actor}"/> > > <input name="zip" label="Choose a zip to upload" > > type="file"/> > > <input name="force" type="select" label="Force > > overwrite" options="true,false" default="false"/> > > <copy path="/" source="${zip}" > destination="${path}" > > force="${force}" delete="false"/> > > <variable name="href" > > > value="${abs-server-base}/screens/please-wait.html"/> > > <nq q="uploading"/> > > <nq who="${uploader}"/> > > </event> > > â > > <q id="zipping"> > > â > > <event name="batch-complete"> > > <variable name="zip" value="${zip}"/> > > <variable name="href" > > > value="${abs-server-base}${zip}?mode=download-link"/> > > <dq/> > > <nq q="zipped"/> > > </event> > > </q> > > â > > <q id="uploading"> > > â > > <event name="batch-complete"> > > <variable name="href" > > > value="${abs-server-base}${work-path}?mode=work-details"/> > > <dq/> > > <nq q="uploaded"/> > > </event> > > </q> > > â > > <q id="zipped"> > > â > > <event name="discard" who="${zipper}"> > > <delete path="${zip}"/> > > <dq/> > > <dq who="${zipper}"/> > > </event> > > </q> > > â > > <q id="uploaded"> > > â > > <event name="discard" who="${uploader}"> > > <delete path="${zip}"/> > > <dq/> > > <dq who="${uploader}"/> > > </event> > > </q> > > </workflow > > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > >> Hi Lalitha, > >> That error indicates that no files were in the > zip. > >> Are you sure > >> you were trying to download a non-empty > directory? > >> > >> Cheers, > >> Alex > >> > >> On Aug 27, 2007, at 8:41 PM, tom tom wrote: > >> > === message truncated === ____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC |