You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/08/11 15:30:17 UTC

[Bug 59984] New: Add log message when apr_hash_get fails

https://bz.apache.org/bugzilla/show_bug.cgi?id=59984

            Bug ID: 59984
           Summary: Add log message when apr_hash_get fails
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: All
          Assignee: bugs@httpd.apache.org
          Reporter: jiazhouyang@nudt.edu.cn

Created attachment 34130
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34130&action=edit
Add log message when apr_hash_get fails

Function apr_hash_get may fail. The majority of calls have checked the return
value and printed log message like the following code snippet, while the others
have not. Those unchecked ones probably need logs too (see attachment).

/* httpd-2.4.10/modules/aaa/mod_authz_dbd.c:214:10 */
    query = apr_hash_get(dbd->prepared, cfg->query, APR_HASH_KEY_STRING);
    if (query == NULL) {
        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01650)
                      "Error retrieving query for dbd-group!");
        return HTTP_INTERNAL_SERVER_ERROR;
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59984] [patch] Add log message when apr_hash_get fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59984

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Rich Bowen <rb...@apache.org> ---
Thank you for your report. As part of an effort to clean up our issue tracker,
we are closing tickets that have seen no activity for more than 5 years. If
this issue is still relevant to a current version of Apache httpd (2.4.x or
trunk), please reopen this ticket or open a new one with updated information.
We appreciate your contribution to the project.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59984] [patch] Add log message when apr_hash_get fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59984

jiazhouyang@nudt.edu.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Add log message when        |[patch] Add log message
                   |apr_hash_get fails          |when apr_hash_get fails

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org