Odoo12: Receiving CSRF validation failed on path '/website_form/crm.lead' on form submission - forms

I'm receiving the below error from an attempt to use a webform to make a Lead. When making the form Odoo 12 also won't let me access any of the existing fields in the Lead model. The following error (from the logs) is all the information that I have along with the form error on the website. This issue is only for the CRM and Tasks all other forms submit just fine.
I'm trying to build a form to submit a Lead.
Instead of the form submitting I recieve the following error in the logs.
2019-08-07 10:37:50,152 28624 WARNING tdb_test_2019-08-07_c1
odoo.http: CSRF validation failed on path '/website_form/crm.lead'

Related

AEM forms/ Adobe Form submission failure on publish instance. Error code: AEM-AF-901-004

AEM version/SP: 6.5.11
AEM forms add-on package: adobe-aemfd-linux-pkg-6.0.566-NPR-37836-B0001.zip
I've created an AEM form on author instance. The form submission is working in author instance. When I publish the form from the console & test it in publish instance, the form submission is failing.
Types of submit action tested:
No action configured
Forms Portal Submit action
Send PDF via email
Send email
Submit to Rest endpoint
Use asynchronous submission - i) Redirect to URL ii) Show message
To summarize, I've tested multiple variations of form submit actions. But none of the scenario is working.
Alert message[Screenshot attached]:
[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form.
The difference that I observe in author-submission & publish-submission is that:
/aem-forms-01/jcr:content/guideContainer.af.internalsubmit.jsp
This above mentioned request is failing in publish instance.
In publish instance the request attributes are:
the error code I see is Status Code: 500 Server Error
the request header for content type is - Content-Type: text/html;charset=utf-8
whereas, in author instance the request header shows content-type as - application/json [screenshot attached].
From the error logs I understand that
In author instance the form data is submitted as application json, as expected, and so it works.
In publish instance the form data is submitted as plain text format and the data is expected to be in json format hence get following error:
com.adobe.aemds.guide.internal.impl.servlet.GuideInternalSubmitServlet Expected a ':' after a key at character 7 of {"guideState":{"guideDom": [...error trace continued]
Kindly provide suggestions to resolve this issue in AEM publish instance
Please refer the following screenshots.
If you have dispatcher at front, add the following rule to allow those URLs to be served:
/0229 { /type "allow" /method "POST" /path "/content/forms/af/[A-Za-z0-9-]*/[A-Za-z0-9-]*/jcr:content/guideContainer*" /extension '(jsp)'} # allow POSTs to submit AEM Forms under /content
Review configurations at https://experienceleague.adobe.com/docs/experience-manager-65/forms/install-aem-forms/configure-aem-forms/configure-adaptive-forms-cache.html?lang=en

powermail validation issue - typo3

Hi I have to show the validation error message when validation fails.But powermail returns an error message Validation failed while trying to call ....createAction();
How to redirect the page when validation fails?
I think you're writing about the serverside validation in powermail. There is nothing special - it's a normal Extbase validation behaviour. This means, that the validators will be checked before createAction() or confirmationAction(). If a validation fails, extbase will redirect the user to the last working action - in this case formAction() - and should show the errors above the rendered form.
So your problem is, that the form is rendered again but there are no error messages?

Symfony 2 form validate

I have a simple form without a entity that I use to send emails. Now I was testing in firefox and if I leave a field empty I will get a message. But now if I open the same form in Safari (that ignores required proprty) I won't get any message. The form->isValid() returs true even when I leave all fields blank...
How to validate this?
The in-browser validation is just a time saver to avoid a request to a server when a field is blank, but it's not a proper validation because it can be disabled on the browser level. You still should validate on the server side.
See this section — you need the NotBlank constraint.

Login and Registration error 3840

I'm following along on this tutorial
http://www.raywenderlich.com/13511/how-to-create-an-app-like-instagram-with-a-web-service-backend-part-12 and got to the part where you implement the login and registration through Objective-c. Every time I press register or login I receive an error saying "The operation couldn't be completed. (cocoa error 3840). Also I'm not getting an error back in xcode. Help please
I just checked the mysql database and it inserts a user id but no text into username and password field
This error can occur when the program encounters invalid JSON in the response. To determine if the JSON response is valid, use a tool like HTTPSnoop to examine the output of the PHP script.

Infopath form publishing issue

I designed the infopath form. I am writing required programming code on button clicked event. But while publishing the infopath form i am getting error; Please observe: It should allow me to select "Form Library" option so that i can do. From Microsoft it is suggested from here that i need to remove code. but everything is required in my form. I need to deploy form with code. without code it is without any value.
I have associate tryst certificate as well as my form is with full trust.
My infopath services are configured properly.
I am running sharepoint2010 in 2-tier farm.
I am using Infopath 2010 with Sharepoint 2010.
What else i need to be added...?
If i removes code then it shows me and deployed properly.
Please , give me right direction.
**Edited:**
I deployed this form as form template and activated it by central admin site. and assigned to form library as content type. but while running this form (from Document-> New Document->MyContentTypeTemplate),
i got exception:
Business logic failed due to an exception.
(User: domainname\user, Form Name: MHPMEmployeeInformationTemplateChanged9, IP: , Request: http://spwfe1:7000/_layouts/FormServer.aspx?
XsnLocation=http://spwfe1:7000/FormServerTemplates/MHPMEmployeeInformationTemplateChanged9.xsn&SaveLocation=http:
//spwfe1:7000/OfficialResumeFormLibrary&Source=http://spwfe1:7000/OfficialResumeFormLibrary/Forms/AllItems.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:
office:infopath:MHPMEmployeeInformationTemplateChanged9:-myXSD-2011-09-06T18-40-25, Type: UnauthorizedAccessException, Exception Message: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.) a2e8bb5f-26d2-485a-bf9c-0a333eaa71e7
Verbose Calling GlobalStorage.SetItem with index LastExceptionLogged value type UnauthorizedAccessException. a2e8bb5f-26d2-485a-bf9c-0a333eaa71e7
Medium Exception thrown from business logic event listener: System.UnauthorizedAccessException:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.
at EmployeeInformation_Template.DocGenerator.CreateWordDocument(Resume objResume, Object oTemplate)
at EmployeeInformation_Template.FormCode.GetInfopathData() at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Employe... a2e8bb5f-26d2-485a-bf9c-0a333eaa71e7
Why should This? : I wondered When Microsoft is avoiding to use Interop COM Objects to use for word file automation which i used in my infopath form. Look Here
What i have to do now? do i need to go with alternatives ? or move by trying to resolve the issues ??? Please , i need right direction.
This is by design. As soon as you have code in your form, your only option is to deploy as "Administrator approved Form".
To get the form to show in your library, do the following:
Upload it in the Central Administration (General Applications
Settings -> Manage Form Templates)
activate the according Feature In the "Advanced Settings" section of
your library
allow "ContentType Management"
Add the Form as ContentType