http://hudson/secured/ redirection problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

http://hudson/secured/ redirection problem

Tomasz Sterna-2
When I upgraded my Hudson 1.111 installation to 1.112 or 1.113 after
accessing my Hudson http://hudson/ site I'm redirected to
http://hudson/secured/ and get the following error:

HTTP Status 401 -

________________________________________________________________________
type Status report
message
description This request requires HTTP authentication ().

________________________________________________________________________
Apache Tomcat/5.5.20

Is it a bug or did I do something wrong?
It's strange becouse I did HTTP auth. I have the whole http://hudson/
site protected by HTTP auth.

--
Tomasz Sterna                     E-Mail: [hidden email]
eo Networks Sp. z o.o.          JabberID: [hidden email]
ul. Jana Olbrachta 94, Warszawa  SkypeID: tomasz.sterna

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: http://hudson/secured/ redirection problem

Kohsuke Kawaguchi
Administrator
Tomasz Sterna wrote:
> When I upgraded my Hudson 1.111 installation to 1.112 or 1.113 after
> accessing my Hudson http://hudson/ site I'm redirected to
> http://hudson/secured/ and get the following error:

Hmm. Did you say you modified web.xml? Can you show me your web.xml?

You also said you did "HTTP auth". You mean HTTP basic authentication?

So you configured web.xml to protect the whole thing with HTTP basic
authentication, and so when the browser accesses it for the first time
you get HTTP basic authentication dialog, you type in the
username/password, click OK, and you get redirected to the wrong place?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: http://hudson/secured/ redirection problem

Tomasz Sterna-2
Dnia 25-06-2007, pon o godzinie 11:25 -0700, Kohsuke Kawaguchi
napisał(a):
> > When I upgraded my Hudson 1.111 installation to 1.112 or 1.113 after
> > accessing my Hudson http://hudson/ site I'm redirected to
> > http://hudson/secured/ and get the following error:
>
> Hmm. Did you say you modified web.xml? Can you show me your web.xml?

No I did not. It's freshly downloaded 1.112 or 1.113 war.


> You also said you did "HTTP auth". You mean HTTP basic authentication?

Yes, basic authentication.
It's done on Apache HTTPd frontend with
<Location />
 ...
 Require valid-user
</Location>

The Hudson itself is not running in secured mode.

> you get HTTP basic authentication dialog, you type in the
> username/password, click OK, and you get redirected to the wrong
> place?

I enter the / hudson URL and get HTTP auth prompt from Apache.
When I enter the credentials I'm getting redirected to /secured/ and get
the error that "This request requires HTTP authentication".

--
Tomasz Sterna                     E-Mail: [hidden email]
eo Networks Sp. z o.o.          JabberID: [hidden email]
ul. Jana Olbrachta 94, Warszawa  SkypeID: tomasz.sterna

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: http://hudson/secured/ redirection problem

Kohsuke Kawaguchi
Administrator
Tomas Stern wrote:

> Dnia 25-06-2007, pon o godzinie 11:25 -0700, Kohsuke Kawaguchi
> napisa�?(a):
>> > When I upgraded my Hudson 1.111 installation to 1.112 or 1.113 after
>> > accessing my Hudson http://hudson/ site I'm redirected to
>> > http://hudson/secured/ and get the following error:
>>
>> Hmm. Did you say you modified web.xml? Can you show me your web.xml?
>
> No I did not. It's freshly downloaded 1.112 or 1.113 war.
>
>
>> You also said you did "HTTP auth". You mean HTTP basic authentication?
>
> Yes, basic authentication.
> It's done on Apache HTTPd frontend with
> <Location />
>  ...
>  Require valid-user
> </Location>
>
> The Hudson itself is not running in secured mode.
OK. Thanks for the info. I believe I committed the fix for this in the
trunk. If you try the snapshot build, it should fix the problem.


>> you get HTTP basic authentication dialog, you type in the
>> username/password, click OK, and you get redirected to the wrong
>> place?
>
> I enter the / hudson URL and get HTTP auth prompt from Apache.
> When I enter the credentials I'm getting redirected to /secured/ and get
> the error that "This request requires HTTP authentication".


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]


smime.p7s (4K) Download Attachment