{"action":"opened","issue":{"url":"https://api.github.com/repos/kjac/FormEditor/issues/118","repository_url":"https://api.github.com/repos/kjac/FormEditor","labels_url":"https://api.github.com/repos/kjac/FormEditor/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/kjac/FormEditor/issues/118/comments","events_url":"https://api.github.com/repos/kjac/FormEditor/issues/118/events","html_url":"https://github.com/kjac/FormEditor/issues/118","id":213015424,"number":118,"title":"IE(customer reports other browsers aswell) issue with posting radio button form","user":{"login":"rasmusfjord","id":1286043,"avatar_url":"https://avatars0.githubusercontent.com/u/1286043?v=3","gravatar_id":"","url":"https://api.github.com/users/rasmusfjord","html_url":"https://github.com/rasmusfjord","followers_url":"https://api.github.com/users/rasmusfjord/followers","following_url":"https://api.github.com/users/rasmusfjord/following{/other_user}","gists_url":"https://api.github.com/users/rasmusfjord/gists{/gist_id}","starred_url":"https://api.github.com/users/rasmusfjord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasmusfjord/subscriptions","organizations_url":"https://api.github.com/users/rasmusfjord/orgs","repos_url":"https://api.github.com/users/rasmusfjord/repos","events_url":"https://api.github.com/users/rasmusfjord/events{/privacy}","received_events_url":"https://api.github.com/users/rasmusfjord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-09T11:55:01Z","updated_at":"2017-03-09T11:55:01Z","closed_at":null,"body":"Hey there\r\n\r\nSo I got a wierd one, that I cannot figure out, we are running formeditor 0.18.0.2 with the SQL plugin. All is working. \r\n\r\nThe customer creates a form, nothing fancy, a radio button with 2 options and one is preselected, and the rest is just textboxes, an email and a phone field.\r\n\r\nWhen i use the form in Chrome, it works fine, when i tried the form in IE, it also worked fine. Until i tried to switch the selected option on the radio button, then it failed.\r\n\r\nSo when i just filled in the textfields and just used the radiobuttons preselect(option1) it worked, but do i select option 2, and fire the form it fails, if i select option2 and then select option1(which should be the same as the preselected) and fire it, it fails.\r\n\r\nSo the error we get is this(which i really dont get):\r\n\r\n\r\nFejl:\r\n```\r\n{\"Message\":\"An error has occurred.\",\"ExceptionMessage\":\"String or binary data would be truncated.\\r\\nThe statement has been terminated.\",\r\n\"ExceptionType\":\"System.Data.SqlClient.SqlException\",\"StackTrace\":\"   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\\r\\n   \r\nat System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\\r\\n   \r\nat System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\\r\\n   \r\nat System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\\r\\n   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()\\r\\n   at System.Data.SqlClient.SqlDataReader.get_MetaData()\\r\\n   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)\\r\\n   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)\\r\\n   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)\\r\\n   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)\\r\\n   at System.Data.SqlClient.SqlCommand.ExecuteScalar()\\r\\n   at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteScalar()\\r\\n   at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClassa.<ExecuteScalarWithRetry>b__9()\\r\\n   at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)\\r\\n   at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteScalarWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy)\\r\\n   at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteScalarWithRetry(IDbCommand command, RetryPolicy retryPolicy)\\r\\n   at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteScalarWithRetry(IDbCommand command)\\r\\n   at Umbraco.Core.Persistence.Database.Insert(String tableName, String primaryKeyName, Boolean autoIncrement, Object poco)\\r\\n   at Umbraco.Core.Persistence.Database.Insert(Object poco)\\r\\n   at FormEditor.SqlIndex.Storage.Index.Add(Dictionary`2 fields, Guid rowId)\\r\\n   at FormEditor.FormModel.AddSubmittedValuesToIndex(IPublishedContent content, IEnumerable`1 valueFields)\\r\\n   at FormEditor.FormModel.CollectSubmittedValues(IPublishedContent content, Boolean redirect)\\r\\n   at FormEditor.Api.PublicController.SubmitEntry()\\r\\n   at lambda_method(Closure , Object , Object[] )\\r\\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\\r\\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\\r\\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()\"}\r\n```\r\nThis is the request body that made the error :\r\n```\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_id\"\r\n\r\n6117\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Uddannelse\"\r\n\r\nKok\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Navn\"\r\n\r\nrasmus\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Adresse\"\r\n\r\nbare en by\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Phone\"\r\n\r\n42407620\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_E_mailadresse\"\r\n\r\nrfjord@skybrud.dk\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Hovedforloeb\"\r\n\r\nsnart\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Laereplads\"\r\n\r\nskybrud\r\n-----------------------------7e138f15231490\r\nContent-Disposition: form-data; name=\"_Adresse_p__laereplads\"\r\n\r\nvejle, med en by\r\n-----------------------------7e138f15231490\r\n```\r\n  \r\nWhile this a request body from one of the formulars that worked\r\n```\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_id\"\r\n\r\n6117\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Uddannelse\"\r\n\r\nKok\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Navn\"\r\n\r\nrasmus\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Adresse\"\r\n\r\nbare en by\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Phone\"\r\n\r\n42407620\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_E_mailadresse\"\r\n\r\nrfjord@skybrud.dk\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Hovedforloeb\"\r\n\r\nsnart\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Adresse_p__laereplads\"\r\n\r\nvejle, med en by\r\n-----------------------------7e11a72a231490\r\nContent-Disposition: form-data; name=\"_Laereplads\"\r\n\r\nskybrud\r\n-----------------------------7e11a72a231490--\r\n```\r\n\r\nAny ideas?"}}
{"actor":{"display_login":"rasmusfjord"}}