aslam bari | 1 Mar 04:38
Picon
Favicon

Re: Slide gives excetpion on PUT normal file (Help!!!)

Hi ,
Thanks for reply,
I m using Windows. and storing on the file System. Any Solution for Case insensitive propfind.
Thanks...

----- Original Message ----
From: Antoine Levy-Lambert <antoine <at> gmx.de>
To: Slide Users Mailing List <slide-user <at> jakarta.apache.org>
Sent: Thursday, 1 March, 2007 5:23:54 AM
Subject: Re: Slide gives excetpion on PUT normal file (Help!!!)

Hello,

where is your slide server installed ? on a Windows box ? Are you storing the content on file system (I suppose
this is the default configuration). In this case it is understandable why you cannot have both abc.txt and
Abc.txt. If your store is a database or on a Unix file system, then this would be a bug.

Regards,

Antoine

-------- Original-Nachricht --------
Datum: Wed, 28 Feb 2007 02:30:46 -0800 (PST)
Von: Ven Helsing <iamaslamok <at> yahoo.co.in>
An: slide-user <at> jakarta.apache.org
CC: 
Betreff: Slide gives excetpion on PUT normal file (Help!!!)

> 
> Hello All,
(Continue reading)

irene | 6 Mar 17:57
Picon
Picon
Favicon

Newbie: Please help!!: acl permissions: check two roles


Hello, I have the next folders:

/folderA/ granted permission to role_A
    /subfolder1/ granted permission to role_1
    /subfolder2/ granted permission to role_2
/folderB/ granted permission to role_B
   /subfolder1/ granted permission to role_1
   /subfolder2/ granted permission to role_2

And a user A with the roles role_A and role_1

Slide doesn't allow A to access /folderB, but allows /folderB/subfolder1. 

I want that only users who have role_B AND role_1 can access to
/folderB/subfolder1

How can I do this???

--

-- 
View this message in context: http://www.nabble.com/Newbie%3A-Please-help%21%21%3A-acl-permissions%3A-check-two-roles-tf3356641.html#a9335664
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.
Andrea Colleoni | 6 Mar 23:16
Picon

RE: Newbie: Please help!!: acl permissions: check two roles

Hi Irene,
You can use the inheritable property to propagate permission of parent
folder to his children.
In your Domain.xml, in the data section, you can write something like this:

<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/files/folderB">
	<permission action="all" subject="/roles/roleB" inheritable="true"
negative="false"/>
</objectnode>

HTH

Bye.

_____________________
Andrea Colleoni

> -----Original Message-----
> From: irene [mailto:irenita_p <at> yahoo.es] 
> Sent: Tuesday, March 06, 2007 5:57 PM
> To: slide-user <at> jakarta.apache.org
> Subject: Newbie: Please help!!: acl permissions: check two roles
> 
> 
> Hello, I have the next folders:
> 
> /folderA/ granted permission to role_A
>     /subfolder1/ granted permission to role_1
>     /subfolder2/ granted permission to role_2 /folderB/ 
(Continue reading)

irene | 7 Mar 09:34
Picon
Picon
Favicon

RE: Newbie: Please help!!: acl permissions: check two roles


Hi Andrea.
Doing that, a user who has role_A but doesn't have role1, has access to
/files/folderA/folder1

I'd wanted that slide check the two roles. And only a user having roleA and
role1 can access.

Is this possible?

Thanks!!

Andrea Colleoni wrote:
> 
> Hi Irene,
> You can use the inheritable property to propagate permission of parent
> folder to his children.
> In your Domain.xml, in the data section, you can write something like
> this:
> 
> <objectnode classname="org.apache.slide.structure.SubjectNode"
> uri="/files/folderB">
> 	<permission action="all" subject="/roles/roleB" inheritable="true"
> negative="false"/>
> </objectnode>
> 
> HTH
> 
> Bye.
> 
(Continue reading)

Andrea Colleoni | 7 Mar 15:51
Picon

RE: Newbie: Please help!!: acl permissions: check two roles

Hi,
You can create a new role (say role_a_1) grouping the two roles:

    <objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/roles/role_a_1">
        <revision>
            <property name="group-member-set">
                <![CDATA[
			<D:href xmlns:D='DAV:'>/roles/role_A</D:href>
                	<D:href xmlns:D='DAV:'>/roles/role1</D:href>
		    ]]>
            </property>
        </revision>
    </objectnode>

Then give access to /files/folderA/folder1 at /roles/role_a_1.

<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/files/folderA/folder1">
	<permission action="all" subject="/roles/role_a_1"/>
</objectnode>

I think it can work but I've never tried to do so with roles; I've done it
with groups and it worked... I think it could not be so different.

Bye.

_____________________
Andrea Colleoni

(Continue reading)

irene | 7 Mar 18:47
Picon
Picon
Favicon

RE: Newbie: Please help!!: acl permissions: check two roles


Hi, i think that is the correct solution.

But I have been reading the ACL spec and i founded the ACL invert. It'd
solved my problem, too.

Do you know if slide support inverts in ACLs?

Thanks

Andrea Colleoni wrote:
> 
> Hi,
> You can create a new role (say role_a_1) grouping the two roles:
> 
>     <objectnode classname="org.apache.slide.structure.SubjectNode"
> uri="/roles/role_a_1">
>         <revision>
>             <property name="group-member-set">
>                 <![CDATA[
> 			<D:href xmlns:D='DAV:'>/roles/role_A</D:href>
>                 	<D:href xmlns:D='DAV:'>/roles/role1</D:href>
> 		    ]]>
>             </property>
>         </revision>
>     </objectnode>
> 
> Then give access to /files/folderA/folder1 at /roles/role_a_1.
> 
> <objectnode classname="org.apache.slide.structure.SubjectNode"
(Continue reading)

Jason Polites | 10 Mar 06:12
Picon
Gravatar

Deprecated getReasonCode method in Commons HttpException

When constructing an org.apache.webdav.lib.WebdavResource in the case where
an HttpException is thrown, I need to access the HTTP error code of this
exception, which to date I have been doing with the getReasonCode() method
of the HttpException thrown.  The latest version of the Commons HTTP library
has deprecated this method, but does not appear to provide an alternative
for this situation.

How to I obtain the HTTP error code resulting from a failed WebdavResource
construction?

Thanks.
Ven Helsing | 10 Mar 07:59
Picon
Favicon

Re: Slide gives excetpion on PUT normal file (Help!!!)


Hi antoinell,
If you know the answer, plz reply soon, i need the work around.

antoinell wrote:
> 
> Hello,
> 
> where is your slide server installed ? on a Windows box ? Are you storing
> the content on file system (I suppose this is the default configuration).
> In this case it is understandable why you cannot have both abc.txt and
> Abc.txt. If your store is a database or on a Unix file system, then this
> would be a bug.
> 
> Regards,
> 
> Antoine
> 
> -------- Original-Nachricht --------
> Datum: Wed, 28 Feb 2007 02:30:46 -0800 (PST)
> Von: Ven Helsing <iamaslamok <at> yahoo.co.in>
> An: slide-user <at> jakarta.apache.org
> CC: 
> Betreff: Slide gives excetpion on PUT normal file (Help!!!)
> 
>> 
>> Hello All,
>> I have the following problem related to slide.
>> 
>> 1. when i put a file for ex: named 'abc.txt' to slide it successfully
(Continue reading)

Pablo Mosquera Saenz | 12 Mar 09:55
Picon

Re: Slide gives excetpion on PUT normal file (Help!!!)

Hi, in our project we used slide and we had an exception with the put method
because of one parameter (the lenght of the file). We had to redefine the
WebdavResource api, changing the put method and now it works

2007/3/10, Ven Helsing <iamaslamok <at> yahoo.co.in>:
>
>
> Hi antoinell,
> If you know the answer, plz reply soon, i need the work around.
>
> antoinell wrote:
> >
> > Hello,
> >
> > where is your slide server installed ? on a Windows box ? Are you
> storing
> > the content on file system (I suppose this is the default
> configuration).
> > In this case it is understandable why you cannot have both abc.txt and
> > Abc.txt. If your store is a database or on a Unix file system, then this
> > would be a bug.
> >
> > Regards,
> >
> > Antoine
> >
> > -------- Original-Nachricht --------
> > Datum: Wed, 28 Feb 2007 02:30:46 -0800 (PST)
> > Von: Ven Helsing <iamaslamok <at> yahoo.co.in>
> > An: slide-user <at> jakarta.apache.org
(Continue reading)

Nicolas Gauthier | 13 Mar 13:09
Picon

How to disabling versionning?

Hi @all

Sorry for my bad english :P

I'm using Jakarta Slide for a few days in order to create directories and
uploading files in it.
For that I call mkcolMethod and putMethod on WebdavResources.
When I upload a file, this one is created with the '_1.0' suffix but I need
to access this files directly with the Files Explorer.

So I created a 'slide.properties' file wich contains '
org.apache.slide.versioncontrol=false' value and I put it in my
WEB-INF/classes directory in order to disable versionning, but it doesn't
works.
Is there anything else to configure (perhaps in Domain.xml)?

Thank you for your answers.

Gmane