Can't config valication in dynamicModules > MoreOptions > UrlName. It not work for Thai language
If you look at the attached photos.
We can inspect the error 500 from Telerik.Sitefinity.DynamicModules.Web.Services.DataService.
<reference - github.com/.../Data.svc >
Hi,
Testing the case with random Thai text and the default validation seems works fine. In some cases there are symbols that are replaced by dash, which characters could cause such invalidation. So please check and ensure that all the symbols are valid for URL.
In case the issue persists can you provide a sample url that you have issue with, in order to test it on my side.
Regards,
Svetoslav Manchev
Telerik
Hi,
The Url provided contains some invalid symbols e..g. slash. When create a new Item that symbols is replaced and works fine. When edit the Item and change the Url this symbol could not be accepted. Even if you stop the client side validation server side validation will prevent such slash symbol validation.
Here is a short video demonstration where you can see the replaced symbols.
I hope the information was useful.
Regards,
Svetoslav Manchev
Telerik
Thank you for your reply,
I try to use word 'สุขุมวิท39' but sitefinity change it to 'ส-ขมว-ท39'. it don't have meaning in Thai language. Then i try to config RegularExpressionFilter for special character but it still not work.
Regards,
Mrth
I found server log file
For more information:
----------------------------------------
Timestamp: 2/29/2016 3:56:22 PM
Message: HandlingInstanceID: 1a2f768f-f80b-427e-8f2d-bb8549937344
An exception of type 'Telerik.Sitefinity.Utilities.MS.ServiceModel.Web.WebProtocolException' occurred and was caught.
---------------------------------------------------------------------------------------------------------------------
02/29/2016 22:56:22
Type : Telerik.Sitefinity.Utilities.MS.ServiceModel.Web.WebProtocolException, Telerik.Sitefinity.Utilities, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
Message : The URL: '/สุขุมวิท' is not valid.
Source : Telerik.Sitefinity
Help link :
StatusCode : InternalServerError
StatusDescription : The URL: '/สุขุมวิท' is not valid.
IsDetailXhtml : True
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowDuplicateUrlException(System.String, System.String)
HResult : -2146233087
detailWriterInstance : Telerik.Sitefinity.Utilities.MS.ServiceModel.Web.WebProtocolException+StringDetailWriter
Stack Trace : at Telerik.Sitefinity.DynamicModules.Web.Services.DataService.ThrowDuplicateUrlException(String messageFormat, String url)
at Telerik.Sitefinity.DynamicModules.Web.Services.DataService.CheckIfUrlIsValid(DynamicModuleManager manager, DynamicContent dataItem, Type itemType, Guid itemMasterId)
at Telerik.Sitefinity.DynamicModules.Web.Services.DataService.SaveDataItemInternal(DynamicItemContext dataItem, String itemType, String provider, String workflowOperation, String parentId, String parentType, String newParentId)
at Telerik.Sitefinity.DynamicModules.Web.Services.DataService.SaveDataItem(DynamicItemContext dataItem, String dataItemId, String provider, String itemType, String workflowOperation)
at SyncInvokeSaveDataItem(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Additional Info:
MachineName : Test-WEB
TimeStamp : 2/29/2016 3:56:22 PM
FullName : Telerik.Sitefinity.Utilities, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/1/ROOT-2-131012329693225586
ThreadIdentity :
WindowsIdentity : IIS APPPOOL\test.co.th
Requested URL : 202.183.180.133/.../
Category: ErrorLog
Priority: 0
EventId: 90000
Severity: Error
Title:Enterprise Library Exception Handling
Machine: Test-WEB
App Domain: /LM/W3SVC/1/ROOT-2-131012329693225586
ProcessId: 4872
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:2480
Extended Properties: Url - /สุขุมวิท
----------------------------------------