Symptomy
Gdy użytkownik uzyskuje dostęp do witryny sieci Web programu SharePoint, która jest publikowana w Microsoft Internet Security and Acceleration (ISA) Server 2006, ISA Server 2006 z dodatkiem SP1 lub Windows Essential Business Server 2008, użytkownik może zostać wyświetlony jeden z następujących komunikatów o błędach:komunikat o błędzie 1
HTTP 401 nieautoryzowany
Komunikat o błędzie 2
HTTP 500 serwer odmawia określony Uniform Resource Locator (URL). Skontaktuj się z administratorem serwera.
Ten problem występuje, gdy są spełnione następujące warunki:
-
W odbiornika sieci Web, który używa reguły publikowania w sieci Web programu SharePoint, skonfigurowano uwierzytelnianie formularza HTML.
-
Klient sieci Web wysyła żądanie POST do witryny sieci Web programu SharePoint.
-
Adres URL żądania POST zawiera znaki rozszerzone. Na przykład adres URL zawiera é, à lub è.
Przyczyna
Ten problem występuje, ponieważ program ISA Server lub Windows Essential Business Server 2008 nie można przeanalizować adresu URL, który zawiera znaki rozszerzone. W takim przypadku program ISA Server lub Windows Essential Business Server 2008 odrzuca żądanie POST wysyłane przez klienta.
Rozwiązanie
Aby rozwiązać ten problem, wykonaj następujące czynności:
-
Zastosuj poprawkę opisaną w artykule 940250 z bazy wiedzy Microsoft Knowledge Base. Aby uzyskać więcej informacji, kliknij następujący numer artykułu w celu wyświetlenia tego artykułu z bazy wiedzy Microsoft Knowledge Base:
940250 Opis pakietu poprawek dla programu ISA Server 2006:16 lipca 2007
-
Skopiuj następujący skrypt do Notatnika:Uwaga aby rozwiązać ten problem w programie ISA Server 2006, użyj następującego skryptu. Nie trzeba zastosować poprawkę w tym artykule dla programu ISA Server 2006 z dodatkiem SP1, ale należy użyć skryptu.
Const SE_VPS_GUID = "{143F5698-103B-12D4-FF34-1F34767DEabc}"Const SE_VPS_NAME = "CookieFilterDecodeUEncoding"Const SE_VPS_VALUE = trueSub SetValue() ' Create the root object. Dim root ' The FPCLib.FPC root object Set root = CreateObject("FPC.Root") 'Declare the other objects that are needed. Dim array ' An FPCArray object Dim VendorSets ' An FPCVendorParametersSets collection Dim VendorSet ' An FPCVendorParametersSet object ' Get references to the array object ' and to the network rules collection. Set array = root.GetContainingArray Set VendorSets = array.VendorParametersSets On Error Resume Next Set VendorSet = VendorSets.Item( SE_VPS_GUID ) If Err.Number <> 0 Then Err.Clear ' Add the item Set VendorSet = VendorSets.Add( SE_VPS_GUID ) CheckError WScript.Echo "New VendorSet added... " & VendorSet.Name Else WScript.Echo "Existing VendorSet found... value- " & VendorSet.Value(SE_VPS_NAME) End If if VendorSet.Value(SE_VPS_NAME) <> SE_VPS_VALUE Then Err.Clear VendorSet.Value(SE_VPS_NAME) = SE_VPS_VALUE If Err.Number <> 0 Then CheckError Else VendorSets.Save false, true CheckError If Err.Number = 0 Then WScript.Echo "Done with " & SE_VPS_NAME & ", saved!" End If End If Else WScript.Echo "Done with " & SE_VPS_NAME & ", no change!" End IfEnd SubSub CheckError() If Err.Number <> 0 Then WScript.Echo "An error occurred: 0x" & Hex(Err.Number) & " " & Err.Description Err.Clear End IfEnd SubSetValue
-
Zapisz plik jako plik skryptu programu Microsoft Visual Basic przy użyciu rozszerzenia nazwy pliku vbs. Na przykład Zapisz plik przy użyciu następującej nazwy:
EnableKB940248.vbs
-
W wierszu polecenia przejdź do lokalizacji, w której zapisano plik EnableKB940248. vbs.
-
Uruchom następujące polecenie:
cscript EnableKB940248. vbs
Uwaga Po wykonaniu tych kroków, tylko część kwerendy adresu URL może zawierać znaki rozszerzone. Część zapytania jest zgodna ze znakiem zapytania (?) w adresie URL. Część, która jest poprzedzona znakiem zapytania w adresie URL, nie może zawierać znaków rozszerzonych, nawet po użyciu tej rozdzielczości. Jeśli chcesz usunąć zmiany wprowadzone po uruchomieniu skryptu w kroku 5, uruchom następujący skrypt:
Const SE_VPS_GUID = "{143F5698-103B-12D4-FF34-1F34767DEabc}"Const SE_VPS_NAME = "CookieFilterDecodeUEncoding"Const SE_VPS_VALUE = FalseSub SetValue()' Create the root object.Dim root ' The FPCLib.FPC root objectroot = CreateObject("FPC.Root")'Declare the other objects that are needed.Dim array ' An FPCArray objectDim VendorSets ' An FPCVendorParametersSets collectionDim VendorSet ' An FPCVendorParametersSet object' Get references to the array object' and to the network rules collection.array = root.GetContainingArrayVendorSets = array.VendorParametersSetsOn Error Resume NextVendorSet = VendorSets.Item(SE_VPS_GUID)If Err.Number <> 0 ThenErr.Clear()' Add the itemVendorSet = VendorSets.Add(SE_VPS_GUID)CheckError()WScript.Echo("New VendorSet added... " & VendorSet.Name)ElseWScript.Echo("Existing VendorSet found... value- " & VendorSet.Value(SE_VPS_NAME))End IfIf VendorSet.Value(SE_VPS_NAME) <> SE_VPS_VALUE ThenErr.Clear()VendorSet.Value(SE_VPS_NAME) = SE_VPS_VALUEIf Err.Number <> 0 ThenCheckError()ElseVendorSets.Save(False, True)CheckError()If Err.Number = 0 ThenWScript.Echo("Done with " & SE_VPS_NAME & ", saved!")End IfEnd IfElseWScript.Echo("Done with " & SE_VPS_NAME & ", no change!")End IfEnd SubSub CheckError()If Err.Number <> 0 ThenWScript.Echo("An error occurred: 0x" & Hex(Err.Number) & " " & Err.Description)Err.Clear()End IfEnd SubSetValue Change to:[INSERT CORRECTION]Const SE_VPS_GUID = "{143F5698-103B-12D4-FF34-1F34767DEabc}"Const SE_VPS_NAME = "CookieFilterDecodeUEncoding"Const SE_VPS_VALUE = falseSub SetValue()' Create the root object.Dim root ' The FPCLib.FPC root objectSet root = CreateObject("FPC.Root")'Declare the other objects that are needed.Dim array ' An FPCArray objectDim VendorSets ' An FPCVendorParametersSets collectionDim VendorSet ' An FPCVendorParametersSet object' Get references to the array object' and to the network rules collection.Set array = root.GetContainingArraySet VendorSets = array.VendorParametersSetsOn Error Resume NextSet VendorSet = VendorSets.Item( SE_VPS_GUID )If Err.Number <> 0 ThenErr.Clear' Add the itemSet VendorSet = VendorSets.Add( SE_VPS_GUID )CheckErrorWScript.Echo "New VendorSet added... " & VendorSet.NameElseWScript.Echo "Existing VendorSet found... value- " & VendorSet.Value(SE_VPS_NAME)End Ifif VendorSet.Value(SE_VPS_NAME) <> SE_VPS_VALUE ThenErr.ClearVendorSet.Value(SE_VPS_NAME) = SE_VPS_VALUEIf Err.Number <> 0 ThenCheckErrorElseVendorSets.Save false, trueCheckErrorIf Err.Number = 0 ThenWScript.Echo "Done with " & SE_VPS_NAME & ", saved!"End IfEnd IfElseWScript.Echo "Done with " & SE_VPS_NAME & ", no change!"End IfEnd SubSub CheckError()If Err.Number <> 0 ThenWScript.Echo "An error occurred: 0x" & Hex(Err.Number) & " " & Err.DescriptionErr.ClearEnd IfEnd SubSetValue
Stan
Firma Microsoft potwierdziła, że jest to problem w produktach firmy Microsoft, które są wymienione w sekcji "dotyczy".