6712ef
# ./pullrev.sh 1708699
6712ef
http://svn.apache.org/viewvc?view=revision&revision=1708699
6712ef
6712ef
https://bugzilla.redhat.com/show_bug.cgi?id=1306431
6712ef
6712ef
--- subversion-1.7.14/subversion/mod_authz_svn/mod_authz_svn.c.r1708699
6712ef
+++ subversion-1.7.14/subversion/mod_authz_svn/mod_authz_svn.c
6712ef
@@ -807,19 +807,21 @@
6712ef
 #if USE_FORCE_AUTHN
6712ef
       if (authn_configured) {
6712ef
           /* We have to check to see if authn is required because if so we must
6712ef
-           * return UNAUTHORIZED (401) rather than FORBIDDEN (403) since returning
6712ef
+           * return DECLINED rather than FORBIDDEN (403) since returning
6712ef
            * the 403 leaks information about what paths may exist to
6712ef
-           * unauthenticated users.  We must set a note here in order
6712ef
-           * to use ap_some_authn_rquired() without triggering an infinite
6712ef
-           * loop since the call will trigger this function to be called again. */
6712ef
+           * unauthenticated users.  Returning DECLINED means apache's request
6712ef
+           * handling will continue until the authn module itself generates
6712ef
+           * UNAUTHORIZED (401).
6712ef
+
6712ef
+           * We must set a note here in order to use
6712ef
+           * ap_some_authn_rquired() without triggering an infinite
6712ef
+           * loop since the call will trigger this function to be
6712ef
+           * called again. */
6712ef
           apr_table_setn(r->notes, IN_SOME_AUTHN_NOTE, (const char*)1);
6712ef
           authn_required = ap_some_authn_required(r);
6712ef
           apr_table_unset(r->notes, IN_SOME_AUTHN_NOTE);
6712ef
           if (authn_required)
6712ef
-            {
6712ef
-              ap_note_auth_failure(r);
6712ef
-              return HTTP_UNAUTHORIZED;
6712ef
-            }
6712ef
+            return DECLINED;
6712ef
       }
6712ef
 #else
6712ef
       if (!ap_some_auth_required(r))