[opencms-dev] Access right trouble in component template
Sébastien Bianco
s.bianco at eurelis.com
Mon Mar 15 16:56:25 CET 2010
Hi Mario.
Our components only set-up some informations, to find some jsp and somes properties. It doesn't deals with security functionality.
I send you the class anyway. Maybe some lines of code have more power than I think they have !
Sébastien BIANCO
Ingénieur développement
EURELIS
AGITATEUR DE TECHNOLOGIES
Tel : +33 (0)1 49 97 20 20
Fax : +33 (0)1 47 68 20 19
-----Message d'origine-----
De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Mario Jäger
Envoyé : vendredi 12 mars 2010 09:34
À : The OpenCms mailing list
Objet : Re: [opencms-dev] Access right trouble in component template
Hi Sébastien,
You use your own taglib "eurelis" and your own bean "com.eurelis.opencms.commons.frontend.CmsCommonsBean":
...
<%@ taglib prefix="eurelis" uri="http://www.eurelis.com/taglib/opencms/commons" %>
...
<jsp:useBean id="cms" class="com.eurelis.opencms.commons.frontend.CmsCommonsBean">
<% cms.init(pageContext, request, response); %>
</jsp:useBean>
What does the bean make?
--
Kind Regards,
Mario.
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Sébastien Bianco schrieb:
> Hi Mario,
>
> Thanks to have a look on my problem.
>
> Here is the VFS Structure :
>
> /sites/default/fr/_data/etude_marketing/
>
> I got 2 objects :
> - juridic_1 of type juridic (exactly ffc_basic_juridic)
> - study_1 of type study (exactly ffc_basic_study)
>
> Both are pointing on document : /sites/default/fr/_data/etude_marketing/documents_complets/CP_DubaI_Oct2009.pdf
>
>
> Here are permissions on /fr
>
> Group users group (Users) (+r+w+v)
> Role Root administrator (+r+w+v+c+d)
>
> Idem on:
> - /fr/_data
> - /fr/_data/etude_marketing/
> - /fr/_data/etude_marketing/study_1
> - /fr/_data/etude_marketing/juridic_1
>
> Here are rights on /fr/_data/etude_marketing/documents_complets/
> users group (Users) (+r+w+v)
> Role Root administrator (+r+w+v+c+d)
> Group guests group (Guests) (-v)
>
>
> Here are rights on /fr/_data/etude_marketing/documents_complets/CP_DubaI_Oct2009.pdf (inherited of parent folder)
> Group guests group (Guests) (-v)
> Group users group (Users) (+r+w+v)
> Role Root administrator (+r+w+v+c+d)
> ---------------------------------------------
> Here is control code of juridic elements
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <FFCJuridics xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="opencms://system/modules/com.ffc.opencms.website/schemas/contents/juridic_ffc.xsd">
> <FFCJuridic language="fr">
> <Document>
> <link type="WEAK">
> <target><![CDATA[/sites/default/fr/_data/etude_marketing/documents_complets/CP_DubaI_Oct2009.pdf]]></target>
> <uuid>9ea52782-073c-11df-8e50-090e3f73715e</uuid>
> </link>
> </Document>
> </FFCJuridic>
> </FFCJuridics>
>
>
> ----------------------------------------
>
> Here is control code of study element:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <FFCStudys xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="opencms://system/modules/com.ffc.opencms.website/schemas/contents/study_ffc.xsd">
> <FFCStudy language="fr">
> <Title><![CDATA[mon title]]></Title>
> <SortedDate>1268316660000</SortedDate>
> <Summary name="Summary0">
> <links/>
> <content><![CDATA[toto]]></content>
> </Summary>
> <Document>
> <link type="WEAK">
> <target><![CDATA[/sites/default/fr/_data/etude_marketing/documents_complets/CP_DubaI_Oct2009.pdf]]></target>
> <uuid>9ea52782-073c-11df-8e50-090e3f73715e</uuid>
> </link>
> </Document>
> </FFCStudy>
> </FFCStudys>
>
>
>
>
>
> Sébastien BIANCO
>
> Ingénieur développement
>
> EURELIS
>
> AGITATEUR DE TECHNOLOGIES
>
> Tel : +33 (0)1 49 97 20 20
>
> Fax : +33 (0)1 47 68 20 19
>
>
>
> -----Message d'origine-----
> De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Mario Jäger
> Envoyé : jeudi 11 mars 2010 10:06
> À : The OpenCms mailing list
> Objet : Re: [opencms-dev] Access right trouble in component template
>
> Hi Sébastien,
>
> I have compared your two documents "juridic" and "study". They are identical except for some
> comment lines. Give us more details of your VFS structure and the permissions, please.
>
>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CmsCommonsBean.java
Type: application/octet-stream
Size: 6144 bytes
Desc: CmsCommonsBean.java
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100315/f7d3d3b8/attachment.obj>
More information about the opencms-dev
mailing list