You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gabriele Fatigati <g....@cineca.it> on 2009/08/15 09:33:19 UTC

Tomcat subdirectories BASIC authentication

Dear Tomcat users,
i would ask you if is it possibile in Tomcat  5.5 to protect
subdirectories of my deployed application. I'll explain an example.
Suppose i have deployed my app in /application. This application has
two subdirectories, subdir_1, subdir_2, but only in the url not in the
file system.

/application
/application/subdir_1
/application/subdir_2

Suppose i have two user, user_1,user_2. I would like to do that user_1
has a full access in my application, but user_2 only subdir_1. When
user_2 try to go in /application/subdir_1 will be request him username
and password.

i've tried this configuration but doesn't work:

tomcat-users.xml:

<user username="user_1" password="pass1"
roles="admin,manager,application,subdir_1,subdir_2"/>
<user username="user_2" password="pass2" roles="subdir_1"/>

In the application web.xml:

<security-role>
    <role-name>application</role-name>
  </security-role>

 <security-role>
    <role-name>subdir_1</role-name>
  </security-role>

 <security-role>
    <role-name>subdir_2</role-name>
  </security-role>

<security-constraint>
  <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/application</url-pattern>
    <url-pattern>/application/subdir_1</url-pattern>
    <url-pattern>/application/subdir_2</url-pattern>
  </web-resource-collection>
  <auth-constraint>
    <role-name>application</role-name>
  </auth-constraint>
 </security-constraint>

  <security-constraint>
  <web-resource-collection>
    <web-resource-name>Application</web-resource-name>
    <url-pattern>/application/subdir_1/*</url-pattern>
  </web-resource-collection>
  <auth-constraint>
    <role-name>applicazione</role-name>
    <role-name>subdir_1</role-name>
  </auth-constraint>
 </security-constraint>


I can proted the entire application with /* in security constraint,
but not single subdirectories .
Wehere is a mistake? Is it possible to do this in Tomcat 5.5?
Thanks in advance

-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat subdirectories BASIC authentication

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: gabriele.fatigati@gmail.com [mailto:gabriele.fatigati@gmail.com]
> On Behalf Of Gabriele Fatigati
> Subject: Re: Tomcat subdirectories BASIC authentication
> 
> I kow what is <url-pattern> tag , but simply i don't understand how i
> have to write security coinstraints.

As Mark said, you must not include the context path in the <url-pattern>.

Hint: the context path in your case is /application.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Martin Gainty wrote:
> if the proposed solution is not conformant to spec

There is a spec compliant solution to the OPs question...

> or is not a TC solution

...and Tomcat supports that spec compliant solution.

> yelling at the op or anyone else

Whose yelling? I don't see any shouting on this thread. I see an OP who
wants to be spoon-fed the answer rather than doing a little research and
actually learn something and I see you throwing misdirection and
inaccurate information around but I don't see any yelling.

> (even though what you're saying is technically correct) 
> still does not provide (a TC Servlet-spec) solution that will work for the client

Yet again, there is a perfectly simple spec compliant solution and the
OP has pointers they need to find it.

> the end result is that the client gets ticked and *everyone* loses that client or customer

There is no client or customer here, just members of the Tomcat user
community. This community has some ground rules which have been better
described than I ever could by others:
http://catb.org/~esr/faqs/smart-questions.html
http://slash7.com/pages/vampires
and people are expected to abide by them.

> i ask again..the answer is?

A simple three step solution.
1. Read the Servlet specification. Any version would do but since the OP
is using Tomcat 5.5, the Servlet 2.4 spec would be best.
2. Understand what a context path is.
3. Read my original answer again.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat subdirectories BASIC authentication

Posted by Martin Gainty <mg...@hotmail.com>.
if the proposed solution is not conformant to spec or is not a TC solution yelling at the op or anyone else (even though what you're saying is technically correct) 
still does not provide (a TC Servlet-spec) solution that will work for the client

the end result is that the client gets ticked and *everyone* loses that client or customer

i ask again..the answer is?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 15 Aug 2009 13:04:02 +0100
> From: markt@apache.org
> To: users@tomcat.apache.org
> Subject: Re: Tomcat subdirectories BASIC authentication
> 
> Martin Gainty wrote:
> > As we are learning
> > There are some things that Tomcat can do and
> > some things Tomcat cannot do
> 
> There are may things you can't do with Tomcat. However, Tomcat can do this.
> 
> > if you want to look at how other webappservers accomplish url-pattern and security-constraint read
> > http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1039540
> 
> That description of web.xml applies to any spec compliant servlet
> container. However, given that the OP doesn't know what a context path
> is that probably won't help. However, the Servlet spec will.
> 
> > ping me offline for a solution you can use
> 
> Encouraging off-line communication for on-topic posts is totally
> unacceptable behaviour on this list. The community learns from other
> people's questions and answers. Encouraging on-topic questions to be
> taken off-line prevents the community from learning from each other.
> 
> > rather than Tomcat certified solution that wont work
> 
> This is completely untrue. Security constraints do work in Tomcat. It
> would be a major bug if they did not.
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Martin Gainty wrote:
> As we are learning
> There are some things that Tomcat can do and
> some things Tomcat cannot do

There are may things you can't do with Tomcat. However, Tomcat can do this.

> if you want to look at how other webappservers accomplish url-pattern and security-constraint read
> http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1039540

That description of web.xml applies to any spec compliant servlet
container. However, given that the OP doesn't know what a context path
is that probably won't help. However, the Servlet spec will.

> ping me offline for a solution you can use

Encouraging off-line communication for on-topic posts is totally
unacceptable behaviour on this list. The community learns from other
people's questions and answers. Encouraging on-topic questions to be
taken off-line prevents the community from learning from each other.

> rather than Tomcat certified solution that wont work

This is completely untrue. Security constraints do work in Tomcat. It
would be a major bug if they did not.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat subdirectories BASIC authentication

Posted by Martin Gainty <mg...@hotmail.com>.
As we are learning
There are some things that Tomcat can do and
some things Tomcat cannot do

if you want to look at how other webappservers accomplish url-pattern and security-constraint read
http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1039540

ping me offline for a solution you can use rather than Tomcat certified solution that wont work

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 15 Aug 2009 11:30:10 +0100
> From: markt@apache.org
> To: users@tomcat.apache.org
> Subject: Re: Tomcat subdirectories BASIC authentication
> 
> Gabriele Fatigati wrote:
> > I kow what is <url-pattern> tag , but simply i don't understand how i
> > have to write security coinstraints.
> 
> But you clearly don't know what a context path is. Read the servlet
> spec. It explains this.
> 
> > You told me:
> > 
> > "you don't need to include the context path in the <url-pattern> elements"
> > 
> > And i renew my question :), What i have to write in <url-pattern> in
> > this specific case?
> 
> The servlet spec also explains how to write security constraints.
> 
> Mark
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009

RE: Tomcat subdirectories BASIC authentication

Posted by Martin Gainty <mg...@hotmail.com>.
Good to hear the problem is solved

In the meanwhile please read Servlet Spec 3.0 located at
http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html

Molte Grazie,
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 16 Aug 2009 10:59:22 +0200
> Subject: Re: Tomcat subdirectories BASIC authentication
> From: g.fatigati@cineca.it
> To: users@tomcat.apache.org
> 
> Well,
> i've solved the problem. The problem was that the css style documents
> are in a subdirectories which user_2 didn't has the access. Adding the
> permission to user_2, pages are correctly displayed after BASIC
> authentication :)
> 
> 2009/8/16 Gabriele Fatigati <g....@cineca.it>:
> > Hi Martin,
> > in the document above,
> > (http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html)
> >
> > i didn't found any reference to css style.
> >
> > 2009/8/15 Martin Gainty <mg...@hotmail.com>:
> >>
> >> could you read the servlet 3.0 spec at
> >> http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html
> >>
> >> in the meanwhile could you display the following items
> >> web.xml
> >> user_1 and css
> >> user_2 and css
> >>
> >> molte grazie
> >> Martin Gainty
> >> ______________________________________________
> >> Note de déni et de confidentialité
> >> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> >>
> >>
> >>
> >>
> >>> Date: Sat, 15 Aug 2009 19:56:18 +0200
> >>> Subject: Re: Tomcat subdirectories BASIC authentication
> >>> From: g.fatigati@cineca.it
> >>> To: users@tomcat.apache.org
> >>>
> >>> And very very strage, with user_1 pages has correct layout, with user 2 no!
> >>>
> >>> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
> >>> > Mm,
> >>> > there are css link in the source of the page. But i've checked and i
> >>> > think are correct.
> >>> >
> >>> > How can avoid this behaviour?
> >>> >
> >>> > 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
> >>> >>> Bad reference to the css maybe?
> >>> >>
> >>> >> Yes, to the css.
> >>> >>
> >>> >> 2009/8/15 Mark Thomas <ma...@apache.org>:
> >>> >>> Gabriele Fatigati wrote:
> >>> >>>> Well,
> >>> >>>> now i can authenticate subdirectories. But for some strange reason,
> >>> >>>> web pages, after BASIC authentication has very bad layout! I attached
> >>> >>>> an example.
> >>> >>>
> >>> >>> Attachments are blocked on this list so no-one can see your example.
> >>> >>>
> >>> >>>> Why?
> >>> >>>
> >>> >>> Bad reference to the css maybe?
> >>> >>>
> >>> >>> Mark
> >>> >>>
> >>> >>>>
> >>> >>>> 2009/8/15 David Smith <dn...@cornell.edu>:
> >>> >>>>> Mark Thomas wrote:
> >>> >>>>>> Gabriele Fatigati wrote:
> >>> >>>>>>
> >>> >>>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
> >>> >>>>>>> have to write security coinstraints.
> >>> >>>>>>>
> >>> >>>>>> But you clearly don't know what a context path is. Read the servlet
> >>> >>>>>> spec. It explains this.
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>>> You told me:
> >>> >>>>>>>
> >>> >>>>>>> "you don't need to include the context path in the <url-pattern> elements"
> >>> >>>>>>>
> >>> >>>>>>> And i renew my question :), What i have to write in <url-pattern> in
> >>> >>>>>>> this specific case?
> >>> >>>>>>>
> >>> >>>>>> The servlet spec also explains how to write security constraints.
> >>> >>>>>>
> >>> >>>>>> Mark
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>> ---------------------------------------------------------------------
> >>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> >>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>> May I add the servlet spec is a _very_ readable document -- nothing like
> >>> >>>>> the many RFCs that govern stuff like URLs and HTTP protocol.
> >>> >>>>>
> >>> >>>>> --David
> >>> >>>>>
> >>> >>>>>
> >>> >>>>> ---------------------------------------------------------------------
> >>> >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> >>>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>> >>>>>
> >>> >>>>>
> >>> >>>>
> >>> >>>>
> >>> >>>>
> >>> >>>>
> >>> >>>> ------------------------------------------------------------------------
> >>> >>>>
> >>> >>>>
> >>> >>>> ---------------------------------------------------------------------
> >>> >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> >>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> ---------------------------------------------------------------------
> >>> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>> >>>
> >>> >>>
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Ing. Gabriele Fatigati
> >>> >>
> >>> >> Parallel programmer
> >>> >>
> >>> >> CINECA Systems & Tecnologies Department
> >>> >>
> >>> >> Supercomputing Group
> >>> >>
> >>> >> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >>> >>
> >>> >> www.cineca.it                    Tel:   +39 051 6171722
> >>> >>
> >>> >> g.fatigati [AT] cineca.it
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Ing. Gabriele Fatigati
> >>> >
> >>> > Parallel programmer
> >>> >
> >>> > CINECA Systems & Tecnologies Department
> >>> >
> >>> > Supercomputing Group
> >>> >
> >>> > Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >>> >
> >>> > www.cineca.it                    Tel:   +39 051 6171722
> >>> >
> >>> > g.fatigati [AT] cineca.it
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Ing. Gabriele Fatigati
> >>>
> >>> Parallel programmer
> >>>
> >>> CINECA Systems & Tecnologies Department
> >>>
> >>> Supercomputing Group
> >>>
> >>> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >>>
> >>> www.cineca.it                    Tel:   +39 051 6171722
> >>>
> >>> g.fatigati [AT] cineca.it
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>
> >> _________________________________________________________________
> >> Get your vacation photos on your phone!
> >> http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM
> >
> >
> >
> > --
> > Ing. Gabriele Fatigati
> >
> > Parallel programmer
> >
> > CINECA Systems & Tecnologies Department
> >
> > Supercomputing Group
> >
> > Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >
> > www.cineca.it                    Tel:   +39 051 6171722
> >
> > g.fatigati [AT] cineca.it
> >
> 
> 
> 
> -- 
> Ing. Gabriele Fatigati
> 
> Parallel programmer
> 
> CINECA Systems & Tecnologies Department
> 
> Supercomputing Group
> 
> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> 
> www.cineca.it                    Tel:   +39 051 6171722
> 
> g.fatigati [AT] cineca.it
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009

Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
Well,
i've solved the problem. The problem was that the css style documents
are in a subdirectories which user_2 didn't has the access. Adding the
permission to user_2, pages are correctly displayed after BASIC
authentication :)

2009/8/16 Gabriele Fatigati <g....@cineca.it>:
> Hi Martin,
> in the document above,
> (http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html)
>
> i didn't found any reference to css style.
>
> 2009/8/15 Martin Gainty <mg...@hotmail.com>:
>>
>> could you read the servlet 3.0 spec at
>> http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html
>>
>> in the meanwhile could you display the following items
>> web.xml
>> user_1 and css
>> user_2 and css
>>
>> molte grazie
>> Martin Gainty
>> ______________________________________________
>> Note de déni et de confidentialité
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>>
>>
>>
>>
>>> Date: Sat, 15 Aug 2009 19:56:18 +0200
>>> Subject: Re: Tomcat subdirectories BASIC authentication
>>> From: g.fatigati@cineca.it
>>> To: users@tomcat.apache.org
>>>
>>> And very very strage, with user_1 pages has correct layout, with user 2 no!
>>>
>>> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>>> > Mm,
>>> > there are css link in the source of the page. But i've checked and i
>>> > think are correct.
>>> >
>>> > How can avoid this behaviour?
>>> >
>>> > 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>>> >>> Bad reference to the css maybe?
>>> >>
>>> >> Yes, to the css.
>>> >>
>>> >> 2009/8/15 Mark Thomas <ma...@apache.org>:
>>> >>> Gabriele Fatigati wrote:
>>> >>>> Well,
>>> >>>> now i can authenticate subdirectories. But for some strange reason,
>>> >>>> web pages, after BASIC authentication has very bad layout! I attached
>>> >>>> an example.
>>> >>>
>>> >>> Attachments are blocked on this list so no-one can see your example.
>>> >>>
>>> >>>> Why?
>>> >>>
>>> >>> Bad reference to the css maybe?
>>> >>>
>>> >>> Mark
>>> >>>
>>> >>>>
>>> >>>> 2009/8/15 David Smith <dn...@cornell.edu>:
>>> >>>>> Mark Thomas wrote:
>>> >>>>>> Gabriele Fatigati wrote:
>>> >>>>>>
>>> >>>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>>> >>>>>>> have to write security coinstraints.
>>> >>>>>>>
>>> >>>>>> But you clearly don't know what a context path is. Read the servlet
>>> >>>>>> spec. It explains this.
>>> >>>>>>
>>> >>>>>>
>>> >>>>>>> You told me:
>>> >>>>>>>
>>> >>>>>>> "you don't need to include the context path in the <url-pattern> elements"
>>> >>>>>>>
>>> >>>>>>> And i renew my question :), What i have to write in <url-pattern> in
>>> >>>>>>> this specific case?
>>> >>>>>>>
>>> >>>>>> The servlet spec also explains how to write security constraints.
>>> >>>>>>
>>> >>>>>> Mark
>>> >>>>>>
>>> >>>>>>
>>> >>>>>>
>>> >>>>>>
>>> >>>>>> ---------------------------------------------------------------------
>>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> >>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>> >>>>>>
>>> >>>>>>
>>> >>>>> May I add the servlet spec is a _very_ readable document -- nothing like
>>> >>>>> the many RFCs that govern stuff like URLs and HTTP protocol.
>>> >>>>>
>>> >>>>> --David
>>> >>>>>
>>> >>>>>
>>> >>>>> ---------------------------------------------------------------------
>>> >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> >>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>> >>>>>
>>> >>>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> ------------------------------------------------------------------------
>>> >>>>
>>> >>>>
>>> >>>> ---------------------------------------------------------------------
>>> >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> >>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>> >>>
>>> >>>
>>> >>>
>>> >>> ---------------------------------------------------------------------
>>> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> >>> For additional commands, e-mail: users-help@tomcat.apache.org
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Ing. Gabriele Fatigati
>>> >>
>>> >> Parallel programmer
>>> >>
>>> >> CINECA Systems & Tecnologies Department
>>> >>
>>> >> Supercomputing Group
>>> >>
>>> >> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>>> >>
>>> >> www.cineca.it                    Tel:   +39 051 6171722
>>> >>
>>> >> g.fatigati [AT] cineca.it
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Ing. Gabriele Fatigati
>>> >
>>> > Parallel programmer
>>> >
>>> > CINECA Systems & Tecnologies Department
>>> >
>>> > Supercomputing Group
>>> >
>>> > Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>>> >
>>> > www.cineca.it                    Tel:   +39 051 6171722
>>> >
>>> > g.fatigati [AT] cineca.it
>>> >
>>>
>>>
>>>
>>> --
>>> Ing. Gabriele Fatigati
>>>
>>> Parallel programmer
>>>
>>> CINECA Systems & Tecnologies Department
>>>
>>> Supercomputing Group
>>>
>>> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>>>
>>> www.cineca.it                    Tel:   +39 051 6171722
>>>
>>> g.fatigati [AT] cineca.it
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> _________________________________________________________________
>> Get your vacation photos on your phone!
>> http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM
>
>
>
> --
> Ing. Gabriele Fatigati
>
> Parallel programmer
>
> CINECA Systems & Tecnologies Department
>
> Supercomputing Group
>
> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>
> www.cineca.it                    Tel:   +39 051 6171722
>
> g.fatigati [AT] cineca.it
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
Hi Martin,
in the document above,
(http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html)

i didn't found any reference to css style.

2009/8/15 Martin Gainty <mg...@hotmail.com>:
>
> could you read the servlet 3.0 spec at
> http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html
>
> in the meanwhile could you display the following items
> web.xml
> user_1 and css
> user_2 and css
>
> molte grazie
> Martin Gainty
> ______________________________________________
> Note de déni et de confidentialité
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Sat, 15 Aug 2009 19:56:18 +0200
>> Subject: Re: Tomcat subdirectories BASIC authentication
>> From: g.fatigati@cineca.it
>> To: users@tomcat.apache.org
>>
>> And very very strage, with user_1 pages has correct layout, with user 2 no!
>>
>> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>> > Mm,
>> > there are css link in the source of the page. But i've checked and i
>> > think are correct.
>> >
>> > How can avoid this behaviour?
>> >
>> > 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>> >>> Bad reference to the css maybe?
>> >>
>> >> Yes, to the css.
>> >>
>> >> 2009/8/15 Mark Thomas <ma...@apache.org>:
>> >>> Gabriele Fatigati wrote:
>> >>>> Well,
>> >>>> now i can authenticate subdirectories. But for some strange reason,
>> >>>> web pages, after BASIC authentication has very bad layout! I attached
>> >>>> an example.
>> >>>
>> >>> Attachments are blocked on this list so no-one can see your example.
>> >>>
>> >>>> Why?
>> >>>
>> >>> Bad reference to the css maybe?
>> >>>
>> >>> Mark
>> >>>
>> >>>>
>> >>>> 2009/8/15 David Smith <dn...@cornell.edu>:
>> >>>>> Mark Thomas wrote:
>> >>>>>> Gabriele Fatigati wrote:
>> >>>>>>
>> >>>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>> >>>>>>> have to write security coinstraints.
>> >>>>>>>
>> >>>>>> But you clearly don't know what a context path is. Read the servlet
>> >>>>>> spec. It explains this.
>> >>>>>>
>> >>>>>>
>> >>>>>>> You told me:
>> >>>>>>>
>> >>>>>>> "you don't need to include the context path in the <url-pattern> elements"
>> >>>>>>>
>> >>>>>>> And i renew my question :), What i have to write in <url-pattern> in
>> >>>>>>> this specific case?
>> >>>>>>>
>> >>>>>> The servlet spec also explains how to write security constraints.
>> >>>>>>
>> >>>>>> Mark
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> ---------------------------------------------------------------------
>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> >>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>> >>>>>>
>> >>>>>>
>> >>>>> May I add the servlet spec is a _very_ readable document -- nothing like
>> >>>>> the many RFCs that govern stuff like URLs and HTTP protocol.
>> >>>>>
>> >>>>> --David
>> >>>>>
>> >>>>>
>> >>>>> ---------------------------------------------------------------------
>> >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> >>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>> >>>>>
>> >>>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------
>> >>>>
>> >>>>
>> >>>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> >>>> For additional commands, e-mail: users-help@tomcat.apache.org
>> >>>
>> >>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> >>> For additional commands, e-mail: users-help@tomcat.apache.org
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Ing. Gabriele Fatigati
>> >>
>> >> Parallel programmer
>> >>
>> >> CINECA Systems & Tecnologies Department
>> >>
>> >> Supercomputing Group
>> >>
>> >> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>> >>
>> >> www.cineca.it                    Tel:   +39 051 6171722
>> >>
>> >> g.fatigati [AT] cineca.it
>> >>
>> >
>> >
>> >
>> > --
>> > Ing. Gabriele Fatigati
>> >
>> > Parallel programmer
>> >
>> > CINECA Systems & Tecnologies Department
>> >
>> > Supercomputing Group
>> >
>> > Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>> >
>> > www.cineca.it                    Tel:   +39 051 6171722
>> >
>> > g.fatigati [AT] cineca.it
>> >
>>
>>
>>
>> --
>> Ing. Gabriele Fatigati
>>
>> Parallel programmer
>>
>> CINECA Systems & Tecnologies Department
>>
>> Supercomputing Group
>>
>> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>>
>> www.cineca.it                    Tel:   +39 051 6171722
>>
>> g.fatigati [AT] cineca.it
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> _________________________________________________________________
> Get your vacation photos on your phone!
> http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat subdirectories BASIC authentication

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Subject: RE: Tomcat subdirectories BASIC authentication
> 
> could you read the servlet 3.0 spec at
> http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html

The servlet 3.0 spec is not appropriate; it's not approved and not implemented.  The 2.4 spec is the correct level for the Tomcat version the OP is using.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat subdirectories BASIC authentication

Posted by Martin Gainty <mg...@hotmail.com>.
could you read the servlet 3.0 spec at
http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html

in the meanwhile could you display the following items
web.xml
user_1 and css
user_2 and css

molte grazie
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 15 Aug 2009 19:56:18 +0200
> Subject: Re: Tomcat subdirectories BASIC authentication
> From: g.fatigati@cineca.it
> To: users@tomcat.apache.org
> 
> And very very strage, with user_1 pages has correct layout, with user 2 no!
> 
> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
> > Mm,
> > there are css link in the source of the page. But i've checked and i
> > think are correct.
> >
> > How can avoid this behaviour?
> >
> > 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
> >>> Bad reference to the css maybe?
> >>
> >> Yes, to the css.
> >>
> >> 2009/8/15 Mark Thomas <ma...@apache.org>:
> >>> Gabriele Fatigati wrote:
> >>>> Well,
> >>>> now i can authenticate subdirectories. But for some strange reason,
> >>>> web pages, after BASIC authentication has very bad layout! I attached
> >>>> an example.
> >>>
> >>> Attachments are blocked on this list so no-one can see your example.
> >>>
> >>>> Why?
> >>>
> >>> Bad reference to the css maybe?
> >>>
> >>> Mark
> >>>
> >>>>
> >>>> 2009/8/15 David Smith <dn...@cornell.edu>:
> >>>>> Mark Thomas wrote:
> >>>>>> Gabriele Fatigati wrote:
> >>>>>>
> >>>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
> >>>>>>> have to write security coinstraints.
> >>>>>>>
> >>>>>> But you clearly don't know what a context path is. Read the servlet
> >>>>>> spec. It explains this.
> >>>>>>
> >>>>>>
> >>>>>>> You told me:
> >>>>>>>
> >>>>>>> "you don't need to include the context path in the <url-pattern> elements"
> >>>>>>>
> >>>>>>> And i renew my question :), What i have to write in <url-pattern> in
> >>>>>>> this specific case?
> >>>>>>>
> >>>>>> The servlet spec also explains how to write security constraints.
> >>>>>>
> >>>>>> Mark
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>>>>
> >>>>>>
> >>>>> May I add the servlet spec is a _very_ readable document -- nothing like
> >>>>> the many RFCs that govern stuff like URLs and HTTP protocol.
> >>>>>
> >>>>> --David
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------------------
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Ing. Gabriele Fatigati
> >>
> >> Parallel programmer
> >>
> >> CINECA Systems & Tecnologies Department
> >>
> >> Supercomputing Group
> >>
> >> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >>
> >> www.cineca.it                    Tel:   +39 051 6171722
> >>
> >> g.fatigati [AT] cineca.it
> >>
> >
> >
> >
> > --
> > Ing. Gabriele Fatigati
> >
> > Parallel programmer
> >
> > CINECA Systems & Tecnologies Department
> >
> > Supercomputing Group
> >
> > Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >
> > www.cineca.it                    Tel:   +39 051 6171722
> >
> > g.fatigati [AT] cineca.it
> >
> 
> 
> 
> -- 
> Ing. Gabriele Fatigati
> 
> Parallel programmer
> 
> CINECA Systems & Tecnologies Department
> 
> Supercomputing Group
> 
> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> 
> www.cineca.it                    Tel:   +39 051 6171722
> 
> g.fatigati [AT] cineca.it
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM

Re: Tomcat subdirectories BASIC authentication

Posted by David Smith <dn...@cornell.edu>.
Try installing Firebug on an install of Firefox and watch Firebug's Net
tab.  You'll see all the requests, response codes and more as the page
loads.  Should be able to figure out what's happening in short order.

--David

Gabriele Fatigati wrote:
> And very very strage, with user_1 pages has correct layout, with user 2 no!
>
> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>   
>> Mm,
>> there are css link in the source of the page. But i've checked and i
>> think are correct.
>>
>> How can avoid this behaviour?
>>
>> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>>     
>>>> Bad reference to the css maybe?
>>>>         
>>> Yes, to the css.
>>>
>>> 2009/8/15 Mark Thomas <ma...@apache.org>:
>>>       
>>>> Gabriele Fatigati wrote:
>>>>         
>>>>> Well,
>>>>> now i can authenticate subdirectories. But for some strange reason,
>>>>> web pages, after BASIC authentication has very bad layout! I attached
>>>>> an example.
>>>>>           
>>>> Attachments are blocked on this list so no-one can see your example.
>>>>
>>>>         
>>>>> Why?
>>>>>           
>>>> Bad reference to the css maybe?
>>>>
>>>> Mark
>>>>
>>>>         


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Gabriele Fatigati wrote:
> Dear Marc,
> My question was referred to css problem..
> After BASIC authentication, sometimes page layout is wrong. So, how
> can avoid this?
> 
> Your suggested me that maybe there are wrong css link in source pages.
> I've checked and are correct.

Clearly, something is not correct. Again, read this:
http://catb.org/~esr/faqs/smart-questions.html

Mark

> 
> 2009/8/15 Mark Thomas <ma...@apache.org>:
>> Gabriele Fatigati wrote:
>>> And very very strage, with user_1 pages has correct layout, with user 2 no!
>> I think you need to read this.
>> http://catb.org/~esr/faqs/smart-questions.html
>>
>> Mark
>>
>>> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>>>> Mm,
>>>> there are css link in the source of the page. But i've checked and i
>>>> think are correct.
>>>>
>>>> How can avoid this behaviour?
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
Dear Marc,
My question was referred to css problem..
After BASIC authentication, sometimes page layout is wrong. So, how
can avoid this?

Your suggested me that maybe there are wrong css link in source pages.
I've checked and are correct.

2009/8/15 Mark Thomas <ma...@apache.org>:
> Gabriele Fatigati wrote:
>> And very very strage, with user_1 pages has correct layout, with user 2 no!
>
> I think you need to read this.
> http://catb.org/~esr/faqs/smart-questions.html
>
> Mark
>
>> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>>> Mm,
>>> there are css link in the source of the page. But i've checked and i
>>> think are correct.
>>>
>>> How can avoid this behaviour?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Gabriele Fatigati wrote:
> And very very strage, with user_1 pages has correct layout, with user 2 no!

I think you need to read this.
http://catb.org/~esr/faqs/smart-questions.html

Mark

> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>> Mm,
>> there are css link in the source of the page. But i've checked and i
>> think are correct.
>>
>> How can avoid this behaviour?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
And very very strage, with user_1 pages has correct layout, with user 2 no!

2009/8/15 Gabriele Fatigati <g....@cineca.it>:
> Mm,
> there are css link in the source of the page. But i've checked and i
> think are correct.
>
> How can avoid this behaviour?
>
> 2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>>> Bad reference to the css maybe?
>>
>> Yes, to the css.
>>
>> 2009/8/15 Mark Thomas <ma...@apache.org>:
>>> Gabriele Fatigati wrote:
>>>> Well,
>>>> now i can authenticate subdirectories. But for some strange reason,
>>>> web pages, after BASIC authentication has very bad layout! I attached
>>>> an example.
>>>
>>> Attachments are blocked on this list so no-one can see your example.
>>>
>>>> Why?
>>>
>>> Bad reference to the css maybe?
>>>
>>> Mark
>>>
>>>>
>>>> 2009/8/15 David Smith <dn...@cornell.edu>:
>>>>> Mark Thomas wrote:
>>>>>> Gabriele Fatigati wrote:
>>>>>>
>>>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>>>>>>> have to write security coinstraints.
>>>>>>>
>>>>>> But you clearly don't know what a context path is. Read the servlet
>>>>>> spec. It explains this.
>>>>>>
>>>>>>
>>>>>>> You told me:
>>>>>>>
>>>>>>> "you don't need to include the context path in the <url-pattern> elements"
>>>>>>>
>>>>>>> And i renew my question :), What i have to write in <url-pattern> in
>>>>>>> this specific case?
>>>>>>>
>>>>>> The servlet spec also explains how to write security constraints.
>>>>>>
>>>>>> Mark
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>
>>>>>>
>>>>> May I add the servlet spec is a _very_ readable document -- nothing like
>>>>> the many RFCs that govern stuff like URLs and HTTP protocol.
>>>>>
>>>>> --David
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Ing. Gabriele Fatigati
>>
>> Parallel programmer
>>
>> CINECA Systems & Tecnologies Department
>>
>> Supercomputing Group
>>
>> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>>
>> www.cineca.it                    Tel:   +39 051 6171722
>>
>> g.fatigati [AT] cineca.it
>>
>
>
>
> --
> Ing. Gabriele Fatigati
>
> Parallel programmer
>
> CINECA Systems & Tecnologies Department
>
> Supercomputing Group
>
> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>
> www.cineca.it                    Tel:   +39 051 6171722
>
> g.fatigati [AT] cineca.it
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
Mm,
there are css link in the source of the page. But i've checked and i
think are correct.

How can avoid this behaviour?

2009/8/15 Gabriele Fatigati <g....@cineca.it>:
>> Bad reference to the css maybe?
>
> Yes, to the css.
>
> 2009/8/15 Mark Thomas <ma...@apache.org>:
>> Gabriele Fatigati wrote:
>>> Well,
>>> now i can authenticate subdirectories. But for some strange reason,
>>> web pages, after BASIC authentication has very bad layout! I attached
>>> an example.
>>
>> Attachments are blocked on this list so no-one can see your example.
>>
>>> Why?
>>
>> Bad reference to the css maybe?
>>
>> Mark
>>
>>>
>>> 2009/8/15 David Smith <dn...@cornell.edu>:
>>>> Mark Thomas wrote:
>>>>> Gabriele Fatigati wrote:
>>>>>
>>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>>>>>> have to write security coinstraints.
>>>>>>
>>>>> But you clearly don't know what a context path is. Read the servlet
>>>>> spec. It explains this.
>>>>>
>>>>>
>>>>>> You told me:
>>>>>>
>>>>>> "you don't need to include the context path in the <url-pattern> elements"
>>>>>>
>>>>>> And i renew my question :), What i have to write in <url-pattern> in
>>>>>> this specific case?
>>>>>>
>>>>> The servlet spec also explains how to write security constraints.
>>>>>
>>>>> Mark
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>> May I add the servlet spec is a _very_ readable document -- nothing like
>>>> the many RFCs that govern stuff like URLs and HTTP protocol.
>>>>
>>>> --David
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
>
> --
> Ing. Gabriele Fatigati
>
> Parallel programmer
>
> CINECA Systems & Tecnologies Department
>
> Supercomputing Group
>
> Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
>
> www.cineca.it                    Tel:   +39 051 6171722
>
> g.fatigati [AT] cineca.it
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
> Bad reference to the css maybe?

Yes, to the css.

2009/8/15 Mark Thomas <ma...@apache.org>:
> Gabriele Fatigati wrote:
>> Well,
>> now i can authenticate subdirectories. But for some strange reason,
>> web pages, after BASIC authentication has very bad layout! I attached
>> an example.
>
> Attachments are blocked on this list so no-one can see your example.
>
>> Why?
>
> Bad reference to the css maybe?
>
> Mark
>
>>
>> 2009/8/15 David Smith <dn...@cornell.edu>:
>>> Mark Thomas wrote:
>>>> Gabriele Fatigati wrote:
>>>>
>>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>>>>> have to write security coinstraints.
>>>>>
>>>> But you clearly don't know what a context path is. Read the servlet
>>>> spec. It explains this.
>>>>
>>>>
>>>>> You told me:
>>>>>
>>>>> "you don't need to include the context path in the <url-pattern> elements"
>>>>>
>>>>> And i renew my question :), What i have to write in <url-pattern> in
>>>>> this specific case?
>>>>>
>>>> The servlet spec also explains how to write security constraints.
>>>>
>>>> Mark
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>> May I add the servlet spec is a _very_ readable document -- nothing like
>>> the many RFCs that govern stuff like URLs and HTTP protocol.
>>>
>>> --David
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Gabriele Fatigati wrote:
> Well,
> now i can authenticate subdirectories. But for some strange reason,
> web pages, after BASIC authentication has very bad layout! I attached
> an example.

Attachments are blocked on this list so no-one can see your example.

> Why?

Bad reference to the css maybe?

Mark

> 
> 2009/8/15 David Smith <dn...@cornell.edu>:
>> Mark Thomas wrote:
>>> Gabriele Fatigati wrote:
>>>
>>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>>>> have to write security coinstraints.
>>>>
>>> But you clearly don't know what a context path is. Read the servlet
>>> spec. It explains this.
>>>
>>>
>>>> You told me:
>>>>
>>>> "you don't need to include the context path in the <url-pattern> elements"
>>>>
>>>> And i renew my question :), What i have to write in <url-pattern> in
>>>> this specific case?
>>>>
>>> The servlet spec also explains how to write security constraints.
>>>
>>> Mark
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>> May I add the servlet spec is a _very_ readable document -- nothing like
>> the many RFCs that govern stuff like URLs and HTTP protocol.
>>
>> --David
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
Well,
now i can authenticate subdirectories. But for some strange reason,
web pages, after BASIC authentication has very bad layout! I attached
an example.

Why?

2009/8/15 David Smith <dn...@cornell.edu>:
> Mark Thomas wrote:
>> Gabriele Fatigati wrote:
>>
>>> I kow what is <url-pattern> tag , but simply i don't understand how i
>>> have to write security coinstraints.
>>>
>>
>> But you clearly don't know what a context path is. Read the servlet
>> spec. It explains this.
>>
>>
>>> You told me:
>>>
>>> "you don't need to include the context path in the <url-pattern> elements"
>>>
>>> And i renew my question :), What i have to write in <url-pattern> in
>>> this specific case?
>>>
>>
>> The servlet spec also explains how to write security constraints.
>>
>> Mark
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> May I add the servlet spec is a _very_ readable document -- nothing like
> the many RFCs that govern stuff like URLs and HTTP protocol.
>
> --David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it


Re: Tomcat subdirectories BASIC authentication

Posted by David Smith <dn...@cornell.edu>.
Mark Thomas wrote:
> Gabriele Fatigati wrote:
>   
>> I kow what is <url-pattern> tag , but simply i don't understand how i
>> have to write security coinstraints.
>>     
>
> But you clearly don't know what a context path is. Read the servlet
> spec. It explains this.
>
>   
>> You told me:
>>
>> "you don't need to include the context path in the <url-pattern> elements"
>>
>> And i renew my question :), What i have to write in <url-pattern> in
>> this specific case?
>>     
>
> The servlet spec also explains how to write security constraints.
>
> Mark
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   

May I add the servlet spec is a _very_ readable document -- nothing like
the many RFCs that govern stuff like URLs and HTTP protocol.

--David


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Gabriele Fatigati wrote:
> I kow what is <url-pattern> tag , but simply i don't understand how i
> have to write security coinstraints.

But you clearly don't know what a context path is. Read the servlet
spec. It explains this.

> You told me:
> 
> "you don't need to include the context path in the <url-pattern> elements"
> 
> And i renew my question :), What i have to write in <url-pattern> in
> this specific case?

The servlet spec also explains how to write security constraints.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
I kow what is <url-pattern> tag , but simply i don't understand how i
have to write security coinstraints.

You told me:

"you don't need to include the context path in the <url-pattern> elements"

And i renew my question :), What i have to write in <url-pattern> in
this specific case?







2009/8/15 Mark Thomas <ma...@apache.org>:
> Gabriele Fatigati wrote:
>> Hi Mark, thanks for your reply.
>> But i didn't understarnd what you said. Where i have to define that
>> user_2 can access only in subdir_1? Can you give me an example?
>
> If you don't understand terms I used, you really need to read the
> servlet specification.
>
> Mark
>
>>
>> 2009/8/15 Mark Thomas <ma...@apache.org>:
>>> Gabriele Fatigati wrote:
>>>> Wehere is a mistake?
>>> You don't need to include the context path in the <url-pattern> elements.
>>>
>>>> Is it possible to do this in Tomcat 5.5?
>>> This is possible in all Tomcat versions.
>>>
>>> Mark
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Gabriele Fatigati wrote:
> Hi Mark, thanks for your reply.
> But i didn't understarnd what you said. Where i have to define that
> user_2 can access only in subdir_1? Can you give me an example?

If you don't understand terms I used, you really need to read the
servlet specification.

Mark

> 
> 2009/8/15 Mark Thomas <ma...@apache.org>:
>> Gabriele Fatigati wrote:
>>> Wehere is a mistake?
>> You don't need to include the context path in the <url-pattern> elements.
>>
>>> Is it possible to do this in Tomcat 5.5?
>> This is possible in all Tomcat versions.
>>
>> Mark
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Gabriele Fatigati <g....@cineca.it>.
Hi Mark, thanks for your reply.
But i didn't understarnd what you said. Where i have to define that
user_2 can access only in subdir_1? Can you give me an example?

2009/8/15 Mark Thomas <ma...@apache.org>:
> Gabriele Fatigati wrote:
>> Wehere is a mistake?
>
> You don't need to include the context path in the <url-pattern> elements.
>
>> Is it possible to do this in Tomcat 5.5?
>
> This is possible in all Tomcat versions.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



-- 
Ing. Gabriele Fatigati

Parallel programmer

CINECA Systems & Tecnologies Department

Supercomputing Group

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat subdirectories BASIC authentication

Posted by Mark Thomas <ma...@apache.org>.
Gabriele Fatigati wrote:
> Wehere is a mistake?

You don't need to include the context path in the <url-pattern> elements.

> Is it possible to do this in Tomcat 5.5?

This is possible in all Tomcat versions.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org