BUG: Commerce 2002 Business Desk Cannot Properly Handle 302 Redirects (331940)



The information in this article applies to:

  • Microsoft Commerce Server 2002

This article was previously published under Q331940

SYMPTOMS

When you use Commerce Server 2002 Business Desk (BizDesk) in a distributed environment, you may receive the following BizDesk error message:
Error occurred in publishing, 302 Found

CAUSE

This problem occurs because Commerce Server 2002 Business Desk does not have error handling to redirect correctly when it receives a 302 error from the server.

RESOLUTION

To resolve this problem, check the HTTP status when you call the site refresh pages. If a 302 is returned, read the location from the response header, and then use this information to call the site one more time.

For these files on your Business Desk site
  • Bizdesk\Catalogs\Editor\List_Catalogs.asp
  • Bizdesk\Productionrefresh\Refresh.asp
  • Bizdesk\Profiles\RefreshProfileSvcAll.asp
insert the following code:
'After the first send, check the status, and then redirect if error 302
'is returned:
If srvXmlHttp.status = 302 Then
	sURLString = srvXmlHttp.getResponseHeader("Location")
	Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
	Call srvXmlHttp.Open ("GET", sURLString, false)
	Call srvXmlHttp.Send()
End if
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:9/27/2005
Keywords:kbHotfixServer kbQFE kbbug kbfix kbnofix kbpending KB331940