Bugs item #1385734, was opened at 2005-12-19 17:34
Message generated for change (Comment added) made by robmen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1385734&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: extensions
Group: v2.0
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Paramesh (paramiws)
>Assigned to: Rob Mensching (robmen)
Summary: FindWebsite action doesn't loop thru all header for website

Initial Comment:
I need to specify the “Headers” also if I am creating 
virtual directories under a website other 
than “Default Web Site”. While specifying “Header”, I 
can use only first header in the list.

In the custom action, it looks only for first Website 
IP and header. I think this is a bug. We can specify 
multiple IP and header mapping during web site 
creation, so setup should loop thru all of them. 

In ConfigureIIs -> ScaWebsRead -> ScaWebFindBase, we 
have the following code 
Loop (all websites in metabase)
{
                                                       
     …
                                                       
     // break down the first address into parts 
#here we Should loop thru all the headers assigned for 
the web site, not just the first one
                                                       
     pwzIPExists = (LPWSTR)mrAddress.pbMDData;
                                                       
     pwzExists = wcsstr(pwzIPExists, L":");
                                                       
     *pwzExists = L'\0';

                                                       
     pwzPortExists = pwzExists + 1;
                                                       
     pwzExists = wcsstr(pwzPortExists, L":");
                                                       
     *pwzExists = L'\0';
                                                       
     iPortExists = wcstol(pwzPortExists, NULL, 10);

                                                       
     pwzHeaderExists = pwzExists + 1;

                                                       
     // compare the passed in address with the address 
listed for this web
                                                       
     if (S_OK == hr && 
                                                       
         (0 == lstrcmpW(wzIP, pwzIPExists) || 0 == 
lstrcmpW(wzIP, L"*")) &&
                                                       
         iPort == iPortExists &&
                                                       
         0 == lstrcmpW(wzHeader, pwzHeaderExists))
                                                       
     {
                                                       
                 // if the passed in buffer wasn't big 
enough
                                                       
                 if (*pcchWebBase < mr.dwMDDataLen)
                                                       
                             hr = HRESULT_FROM_WIN32
(ERROR_INSUFFICIENT_BUFFER);
                                                       
                 else
                                                       
                             StringCchCopyW(wzWebBase, 
*pcchWebBase, wzKey);
                                                       
                 *pcchWebBase = mr.dwMDDataLen;

                                                       
                 fFound = TRUE;
                                                       
                 break; 
                                                       
     }
…
                                                }


----------------------------------------------------------------------

>Comment By: Rob Mensching (robmen)
Date: 2006-12-12 23:52

Message:
Logged In: YES 
user_id=991639
Originator: NO

This should be fixed in the next build.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1385734&group_id=105970

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to