Hi Robert,
First some background, the web admin runs inside a browser and allows the
browser to handle authentication prompts. These prompts are provided when
the browser receives a response from a request indicating that
authentication is necessary. If you allow anonymous access to API-A, which
appears to be the case with your Fedora install, then you won't see a prompt
until you hit a method which is part of API-M. It so happens that viewing a
datastream in the web admin requires a call to an API-M method
(getDatastream), so that is where the you should see the prompt.

The error you are seeing is because the web admin is getting a 401 response
when trying to access the indicated URL (the one included in the error). At
that point the browser should be providing an authentication prompt. For
some reason, though, the 401 response from your server is missing
the WWW-Authenticate header, which instructs the browser regarding the type
of authentication to send back. The value of the header should be: BASIC
realm="Fedora Repository Server". Without this header, the browser doesn't
provide an authentication prompt.

I noticed that the page I get back when trying to access the url included in
your error is not the standard Fedora 401 page. This suggests that you have
a custom 401 page defined. Depending on how you create this page, you should
be able to include the necessary headers. An example for JSP is here:
http://www.axlrosen.net/stuff/401.html. In the end, just make sure that the
WWW-Authenticate header is provided when 401 responses are created and
things should work as you expect.

Bill

On Tue, Jul 7, 2009 at 6:22 AM, Robert Moix <[email protected]> wrote:

> Hello,
>
> I have recently upgraded from fedora 3.1 to 3.2.1 and when I go to the new
> fedora admin web administrator it doesn't ask for user and password:
>
> http://147.83.50.143:8080/fedora/admin
>
> Which specific files and lines do I have to change or check in order to
> activate user and password ?
>
> Moreover, if when I try to access a datastream via web administrator I get
> an error like this:
>
> Error: [FaultEvent fault=[RPC Fault faultString="HTTP request error"
>> faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
>> type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
>> #2032"]. URL:
>> http://147.83.50.143:8080/fedora/objects/i3mam:7/datastreams/image-in.xml?flash=true";]
>> messageId="DA8E9737-E323-DA85-313B-54BBF9379E4C" type="fault" bubbles=false
>> cancelable=true eventPhase=2]
>>
>
>
> Thank you very much.
>
> --
> Robert Moix López
> [email protected]
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to