Microsoft KB Archive/887712

= The URL of an item that is returned in the search results does not work when you search SharePoint Portal Server 2003 for content that is stored in Microsoft Commerce Server =

Article ID: 887712

Article Last Modified on 7/26/2006

-

APPLIES TO


 * Microsoft Office SharePoint Portal Server 2003

-



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
You configure Microsoft Office SharePoint Portal Server 2003 to crawl data that is stored in Microsoft Commerce Server. You search the portal site for content that is stored in Commerce Server. When you click the URL of an item that is returned in the search results, you unexpectedly cannot access that item.



CAUSE
This issue occurs if the following conditions are true:
 * The URL of the item contains a query string. The query string is the part of the URL that appears after the question mark character (?) in the URL.
 * The query string contains one or more special characters that are not encoded as an escape sequence.

SharePoint Portal Server 2003 does not use escape sequences for all special characters that are contained in the query string part of the URL. Examples of special characters that do not use an escape sequence include the following:
 * A forward slash character (/) appears as a forward slash character in the URL and is not converted to a %2F escape sequence.
 * A colon character appears as a colon character in the URL and is not converted to a %3A escape sequence.



RESOLUTION
This problem was first fixed in a hotfix that is now contained in a service pack. If you installed the latest SharePoint Portal Server 2003 service pack, you do not have to install the hotfix.

Service pack information
This problem is corrected in Microsoft Office SharePoint Portal Server 2003 Service Pack 2.

To resolve this problem, obtain the latest service pack for SharePoint Portal Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

889380 How to obtain the latest service pack for SharePoint Portal Server 2003

After you install the service pack, follow the steps that are listed in the &quot;More Information&quot; section to set the DontUnescapeAfterPath registry entry and to enable the hotfix.

How to obtain the hotfix
This issue is fixed in the SharePoint Portal Server 2003 post-Service Pack 1 Hotfix Package October 22, 2004. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

887819 Description of the SharePoint Portal Server 2003 post-Service Pack 1 hotfix package: October 22, 2004

Add the DontUnescapeAfterPath registry entry
To enable this hotfix after you install it, add the DontUnescapeAfterPath registry entry to the following registry subkey, and then set the registry entry to 1:

When you set the DontUnescapeAfterPath registry entry to 1, special characters that are contained in the query string of the URL are formatted by using an escape sequence. If you do not want to format special characters that are contained in the query string of the URL by using an escape sequence, set the DontUnescapeAfterPath registry entry to 0 (zero), or remove the DontUnescapeAfterPath registry entry.

To enable the hotfix after you install it, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Add the DontUnescapeAfterPath registry entry, and then set the registry entry to 1. To do this, follow these steps:  Click Start, click Run, type regedit in the Open box, and then click OK. Locate and then click the following registry subkey:

 

 On the Edit menu, point to New, and then click DWORD Value. Type DontUnescapeAfterPath, and then press ENTER. Right-click DontUnescapeAfterPath, and then click Modify.</li> Type 1 in the Value data box, and then click OK.</li> On the File menu, click Exit to quit Registry Editor.</li></ol> </li> Restart the Microsoft SharePointPS Search service. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type cmd in the Open box, and then click OK .</li> Stop the Microsoft SharePointPS Search service. To do this, type net stop sharepointpssearch at the command prompt, and then press ENTER.</li> Start the Microsoft SharePointPS Search service. To do this, type net start sharepointpssearch at the command prompt, and then press ENTER.</li></ol> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in SharePoint Portal Server 2003 Service Pack 2.

Additional query words: sps escape encode

Keywords: kbshareptportalsvr2003sp2fix kbqfe kbhotfixserver kbshareptportalsvr2003presp2fix kbbug kbfix KB887712

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.