« Previous Next »

Thread: ISAPI filter extension seems to ignore return from SF_NOTIFY_LOG on IIS7

Last post 09-09-2008 5:54 AM by qbernard. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 09-08-2008, 2:40 PM

    • zdenek
    • Top 200 Contributor
    • Joined on 09-08-2008, 2:25 PM
    • miami
    • Posts 31

    ISAPI filter extension seems to ignore return from SF_NOTIFY_LOG on IIS7

     

     I have purchased windows 2008 server web edition and SF_NOTIFY_LOG seems to be still broken...

     

    relevant code:

        else if (is_inited && (dwNotificationType == SF_NOTIFY_LOG)) {
            jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG]");
            if (pfc->pFilterContext) {
                isapi_log_data_t *ld = (isapi_log_data_t *)pfc->pFilterContext;
                HTTP_FILTER_LOG  *pl = (HTTP_FILTER_LOG *)pvNotification;
                jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG] uri [%s]", ld->uri);
                jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG] query [%s]", ld->query);
                jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG] pszTarget [%s]", pl->pszTarget);
                jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG] pszParameters [%s]", pl->pszParameters);
                pl->pszTarget = ld->uri;
                pl->pszParameters = ld->query;
                jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG] after change pszTarget [%s]", pl->pszTarget);
                jk_log(logger, JK_LOG_DEBUG, "[SF_NOTIFY_LOG] after change pszParameters [%s]", pl->pszParameters);
                return SF_STATUS_REQ_NEXT_NOTIFICATION;
            }
        }

     

     and the log it spits out

     

    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1436): [SF_NOTIFY_LOG]
    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1440): [SF_NOTIFY_LOG] uri [/go/network_equipment]
    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1441): [SF_NOTIFY_LOG] query []
    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1442): [SF_NOTIFY_LOG] pszTarget [/jakarta/isapi_redirect.dll]
    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1443): [SF_NOTIFY_LOG] pszParameters []
    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1446): [SF_NOTIFY_LOG] after change pszTarget [/go/network_equipment]
    [Mon Sep 08 14:10:09.414 2008] [2240:2936] [debug] HttpFilterProc::jk_isapi_plugin.c (1447): [SF_NOTIFY_LOG] after change pszParameters []
     

     

    yet IIS has this in the log:

     

    #Software: Microsoft Internet Information Services 7.0
    #Version: 1.0
    #Date: 2008-09-08 18:08:00
    #Fields: date time cs-method cs-uri-stem cs-uri-query c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
    2008-09-08 18:08:01 GET /jakarta/isapi_redirect.dll - x.x.x.x Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.1)+Gecko/2008070208+Firefox/3.0.1 http://x.x.x.x/go/network_equipment 200 0 0 3657 511 122

     

    so that clearly did not take the change on SF_NOTIFY_LOG event.

     

    Any news on when this will be fixed?
  • 09-09-2008, 5:54 AM In reply to

    Re: ISAPI filter extension seems to ignore return from SF_NOTIFY_LOG on IIS7

    Anil has replied you @ this thread -
    http://forums.iis.net/p/1109772/1878792.aspx#1878792

     

    Cheers,
    Bernard Cheah
Page 1 of 1 (2 items)
Microsoft Communities