Never mind,
My client code wasn't authenticating correctly. Everything works fine
now.
Willy
On Feb 18, 2009, at 11:07 AM, Willy Mene wrote:
Hello,
I was previously using Fedora 3.0, and was able to use the REST api
to ingest objects into the repository.
However, with Fedora 3.1, clients using the same RESTful ingest call
are getting a 401 Unauthorized error. This is strange, because if I
look at the logs, the objects are successfully created. I compared
the logs between 3.0 and 3.1, and found this extra filtering
happening with 3.1
DEBUG (FilterSetup) FilterRestApiAuthn.doFilter() :
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
DEBUG (FilterSetup) FilterRestApiAuthn.doFilter() : FILTER_NAME
RestApiAuthnFilter==
DEBUG (FilterSetup) FilterRestApiAuthn.doFilter() : using existing
request...
DEBUG (FilterSetup) FilterRestApiAuthn.doFilter() : passed
HttpServletResponse test
DEBUG (FilterRestApiAuthn) FilterRestApiAuthn.doThisSubclass() . . .
DEBUG (FilterEnforceAuthn) FilterRestApiAuthn.doThisSubclass() . . .
DEBUG (FilterSetup) FilterRestApiAuthn.doThisSubclass() . . .
DEBUG (FilterSetup) FilterRestApiAuthn.doThisSubclass() : passed
init test
DEBUG (FilterSetup) FilterRestApiAuthn.doThisSubclass() : passed
HttpServletRequest test
DEBUG (FilterSetup) FilterRestApiAuthn.. . . doThisSubclass()
DEBUG (FilterEnforceAuthn) FilterRestApiAuthn.doThisSubclass() : no
principal found, sending 401
I make sure to pass in a valid username and password in the
Authorization header, and have tried various configuration settings:
making the call with SSL or without, xacml enforce-policy on, xacml
enable-all, making the call from the same box, making the call from
a remote box.....and I still get the same 401 error. Has anyone
else encountered this? Is something mis-configured?
Any help appreciated.
Willy
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code: SFAD
http://p.sf.net/sfu/XcvMzF8H_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users