jiahuili430 commented on a change in pull request #3577:
URL: https://github.com/apache/couchdb/pull/3577#discussion_r640063045
##########
File path: src/chttpd/src/chttpd.erl
##########
@@ -1036,14 +1036,16 @@ error_headers(#httpd{mochi_req=MochiReq}=Req, 401=Code,
ErrorStr, ReasonStr) ->
% redirect to the session page.
case ErrorStr of
<<"unauthorized">> ->
- case config:get("couch_httpd_auth", "authentication_redirect",
undefined) of
+ case chttpd_util:get_chttpd_auth_config(
+ "authentication_redirect", "/_utils/session.html") of
Review comment:
default.ini is shipped and installed with CouchDB packages and is
overwritten by package installs.
In the previous "default.ini", `authentication_redirect =
/_utils/session.html`, `iterations = 10`
https://github.com/apache/couchdb/pull/3577/files#diff-38acf80292ea264190d7a08646c46d571d7ddcb37a749a58fb79c009030dd115L284
@wohali Do you have a better idea, how to handle `authentication_redirect`
and `iterations`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]