svn commit: r574158 - in /lenya/branches/BRANCH_1_2_X/src/webapp: lenya/usecases/neutron/usecase-neutron.xmap sitemap.xmap

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: josias
Date: Mon Sep 10 00:33:52 2007
New Revision: 574158

URL: http://svn.apache.org/viewvc?rev=574158&view=rev
Log:
set WWW-Authenticate header for neutron 401 response as required by the http 1.1 spec

Modified:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecases/neutron/usecase-neutron.xmap
    lenya/branches/BRANCH_1_2_X/src/webapp/sitemap.xmap

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecases/neutron/usecase-neutron.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecases/neutron/usecase-neutron.xmap?rev=574158&r1=574157&r2=574158&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecases/neutron/usecase-neutron.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecases/neutron/usecase-neutron.xmap Mon Sep 10 00:33:52 2007
@@ -67,6 +67,9 @@
         <map:generate type="jx" src="jx/exception-auth.jx">
           <map:parameter name="base-url" value="http://{request:serverName}:{request:serverPort}{request:requestURI}"/>
         </map:generate>
+        <map:act type="set-header">
+          <map:parameter name="WWW-Authenticate" value="Neutron-Auth"/>
+        </map:act>
         <map:serialize type="xml" status-code="401"/>
       </map:match>
             

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/sitemap.xmap?rev=574158&r1=574157&r2=574158&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/sitemap.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/sitemap.xmap Mon Sep 10 00:33:52 2007
@@ -567,6 +567,9 @@
           <map:generate type="jx" src="lenya/usecases/neutron/jx/exception-auth.jx">
             <map:parameter name="base-url" value="http://{request:serverName}:{request:serverPort}{request:requestURI}"/>
           </map:generate>
+          <map:act type="set-header">
+            <map:parameter name="WWW-Authenticate" value="Neutron-Auth"/>
+          </map:act>
           <map:serialize type="xml" status-code="401"/>
         </map:match>
         <!-- End Neutron Authentication -->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.