You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Christophe Dupriez <ch...@poisoncentre.be> on 2012/10/31 18:42:19 UTC
JSPWiki, jspwiki.policy, Tomcat 7
Hi !
I am getting a bit mad trying to have a JSPWiki 2.8.4 instance working perfectly under Tomcat 6 Win32 bits to work under Tomcat 7 Win64 bits, container managed authentication and roles assignment (Waffle), recognizing the policies.
It behaves like if the jspwiki.policy was not taken into account at all under Tomcat 7 Win64bits.
Does anyone knows something about:
1) Differences between Tomcat 6 and Tomcat 7 in term of accessing policy files management?
2) Versions of JSPWiki that would take into account those differences?
3) Examples of good working configuration files?
Thanks!
Christophe
Re: JSPWiki, jspwiki.policy, Tomcat 7
Posted by Christophe Dupriez <ch...@poisoncentre.be>.
Thanks for your ideas, Roberto!
My error was that I forgot to add the JVM security options in the launch of the Tomcat7 service (Windows): now it works.
Have a nice w.e.!
Christophe Dupriez
Centre Antipoisons-Antigifcentrum
C/o Hôpital Central de la Base Reine Astrid
Rue Bruyn
1120 Bruxelles
Belgique
tel 32-(0)2.264.96.36
fax 32-(0)2.264.96.46
_____
From: Roberto Venturi [mailto:Roven@Mercurio.It]
To: jspwiki-user@incubator.apache.org, Christophe Dupriez [mailto:christophe.dupriez@poisoncentre.be]
Cc: jspwiki-user@incubator.apache.org [mailto:jspwiki-user@incubator.apache.org]
Sent: Fri, 02 Nov 2012 11:31:40 +0100
Subject: Re: JSPWiki, jspwiki.policy, Tomcat 7
Hi all,
I do not know differences between Tomcat releases but my be your
problem is like mine with WebSphere: in my environment the policy file
is ignored and everyone can do anything. Di you have the same problem?
Here is my solution.
In the class "org.apache.wiki.auth.Authorization.Manager.java" there
is the "checkStaticPermission" method who makes a
"AccessController.checkPermission(permission)" call.
WebSphere (as installed and tuned by IBM for my company) answers
ALWAYS "true" for Jspwiki permissions so the result is that everybody
can do anything.
I proposed my changes to this mailing list because I'm not familiar
with jra and team working :-( but I'm happy to partecipate if someone
will be so patient to teach me the steps.
Basically I added a new configuration variable (jspwiki.properties)
"JVMwideSecurity" normally set to "true" (false for my environment).
Then I modified the mentioned class (and
"org.apache.wiki.auth.SecurityVerifier.java" too) to skip the
"AccessController.checkPermission" method and go directly to the
"allowedByLocalPolicy" one.
Of course modified sources are available.
Hopeing to be helpful, regards,
Roberto Venturi
Christophe Dupriez <ch...@poisoncentre.be> ha scritto:
> Hi !
>
> I am getting a bit mad trying to have a JSPWiki 2.8.4 instance
> working perfectly under Tomcat 6 Win32 bits to work under Tomcat 7
> Win64 bits, container managed authentication and roles assignment
> (Waffle), recognizing the policies.
> It behaves like if the jspwiki.policy was not taken into account at
> all under Tomcat 7 Win64bits.
>
> Does anyone knows something about:
> 1) Differences between Tomcat 6 and Tomcat 7 in term of
> accessing policy files management?
> 2) Versions of JSPWiki that would take into account those differences?
> 3) Examples of good working configuration files?
>
> Thanks!
>
> Christophe
--
Messaggio inviato da WebMail - http://www.mercurio.it
-------------------------------------------------------
Re: JSPWiki, jspwiki.policy, Tomcat 7
Posted by Roberto Venturi <Ro...@Mercurio.It>.
Hi all,
I do not know differences between Tomcat releases but my be your
problem is like mine with WebSphere: in my environment the policy file
is ignored and everyone can do anything. Di you have the same problem?
Here is my solution.
In the class "org.apache.wiki.auth.Authorization.Manager.java" there
is the "checkStaticPermission" method who makes a
"AccessController.checkPermission(permission)" call.
WebSphere (as installed and tuned by IBM for my company) answers
ALWAYS "true" for Jspwiki permissions so the result is that everybody
can do anything.
I proposed my changes to this mailing list because I'm not familiar
with jra and team working :-( but I'm happy to partecipate if someone
will be so patient to teach me the steps.
Basically I added a new configuration variable (jspwiki.properties)
"JVMwideSecurity" normally set to "true" (false for my environment).
Then I modified the mentioned class (and
"org.apache.wiki.auth.SecurityVerifier.java" too) to skip the
"AccessController.checkPermission" method and go directly to the
"allowedByLocalPolicy" one.
Of course modified sources are available.
Hopeing to be helpful, regards,
Roberto Venturi
Christophe Dupriez <ch...@poisoncentre.be> ha scritto:
> Hi !
>
> I am getting a bit mad trying to have a JSPWiki 2.8.4 instance
> working perfectly under Tomcat 6 Win32 bits to work under Tomcat 7
> Win64 bits, container managed authentication and roles assignment
> (Waffle), recognizing the policies.
> It behaves like if the jspwiki.policy was not taken into account at
> all under Tomcat 7 Win64bits.
>
> Does anyone knows something about:
> 1) Differences between Tomcat 6 and Tomcat 7 in term of
> accessing policy files management?
> 2) Versions of JSPWiki that would take into account those differences?
> 3) Examples of good working configuration files?
>
> Thanks!
>
> Christophe
--
Messaggio inviato da WebMail - http://www.mercurio.it
-------------------------------------------------------