cancel
Showing results for 
Search instead for 
Did you mean: 

Why is this form asking me to fill out the required fields?

kooktroop
Champ in-the-making
Champ in-the-making
I'm using the following XSD for a web form. All I fillout is the 'name' and I get an error saying 'Please provide values for all required fields'. None of the fields are highlighted in red, I can't workout why this is being asked. I also filled out each of the fields… and it still gives me the same error.


<?xml version="1.0" encoding="utf-8" ?>
<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.processmentor.com"
    xmlns:pm="http://www.processmentor.com"
    xmlns:alf="http://www.alfresco.org"
    elementFormDefault="qualified">

  <xs:complexType name="templatesectionreference">
    <xs:sequence>
      <xs:element name="ref" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
      <xs:element name="optional" type="xs:boolean" default="true"  minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
 
  <xs:complexType name="templatesections">
    <xs:sequence>
      <xs:element name="templatesectionreference" type="pm:templatesectionreference" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
 
  <xs:element name="templatesection">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="name" type="xs:normalizedString" minOccurs="1" maxOccurs="1" />
        <xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" />
        <xs:element name="templatesections" type="pm:templatesections" minOccurs="0" maxOccurs="1" />
        <xs:element name="requiredsections" type="pm:templatesections" minOccurs="0" maxOccurs="1">
          <xs:annotation>
            <xs:appinfo>
              <alf:label>Template Sections Required By This Section</alf:label>
            </xs:appinfo>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Thanks in advance.
16 REPLIES 16

kvc
Champ in-the-making
Champ in-the-making
This may be related to the following bug, which was fixed in July 18th and is currently available in 2.1.0 Community Final (available on SourceForge) and our 2.1.0 Enterprise release:

http://issues.alfresco.com/browse/WCM-563

Can you update to 2.1.0 Community Final or our 2.1.0 Enterprise (available for download; announcement forthcoming) to see if this fixes your issues?

Otherwise, recommend opening a support case if you are a customer.

Kevin

brek
Champ in-the-making
Champ in-the-making
No, i have udate alfresco to 2.1.0 version (alfresco-community-tomcat-2.1.0.tar.gz) but I have always the same message "Please provide values for all required fields" .
Could it depends on O.S. ? I use Linux CentOs 4.4 in a virtual machine and it's doesn't work, but if I use Windows XP in my local machine all that's ok…

thanks

brek

phillme
Champ in-the-making
Champ in-the-making
No, i have udate alfresco to 2.1.0 version (alfresco-community-tomcat-2.1.0.tar.gz) but I have always the same message "Please provide values for all required fields" .
Could it depends on O.S. ? I use Linux CentOs 4.4 in a virtual machine and it's doesn't work, but if I use Windows XP in my local machine all that's ok…

thanks

brek

I also use alfresco 2.1 community within liferay 4.3.1 with tomcat 6 under linux and call it as webapp from the path /alfresco. Calling it from within liferay with the alfresco client portlet gets me an exception when trying to submit webforms.

When trying to submit the webform within firefox 2.0.6 outside of the portlet I get exactly the same  error as described and thus I cannot complete the webform wizard.

Unfortunately that is why I must pause the development of my opensource alfresco news portlet.

phillme
Champ in-the-making
Champ in-the-making
I filed a new bug for Alfresco 2.1 under http://issues.alfresco.com/browse/WCM-833 .

tonizz
Champ in-the-making
Champ in-the-making
I have had this problem using Alfresco 2.1 community with Explorer 7 but with Mozilla Firefox everything is ok.

iamsteveholmes
Champ in-the-making
Champ in-the-making
I have the same issue with firefox 2.0.0.7, alfresco 2.1 community, and Windows XP, but it DOES work with IE 6.0.x

sudkcoce
Champ in-the-making
Champ in-the-making
The problem occurs when one gets two JSESSIONID cookies for the same host (localhost?)!!!

So if you look at the cookies, one is JSESSIONID with path / (or something) and the other is JSESSIONID with path /alfresco.

When submitting, chiba's xforms pass both cookies forward and some mechanism later on does not evaluate the path (and uses the other JSESSIONID) and you get the following error:

org.chiba.xml.xforms.exception.XFormsException: org.chiba.xml.xforms.exception.XFormsException: org.chiba.xml.xforms.exception.XFormsException: HTTP status 401: Access Denied: User not authenticated

(you get this error only if you uncomment the og4j.logger.org.chiba=debug property in the Alfresco's log4j.properties file !)

In my case the problem was a dashlet containing an IFRAME, where another server was running with the same hostname (localhost) and it has set another JSESSIONID cookie on the browser (but different path). So clearing all cookies didn't help in that case, because the other server (liferay) has always pushed it's own JSESSIONID cookie back…

But I guess this can happen with other scenarios, too (same browser, two different servers on the same hostname)…

So the solution, I guess, to these problems could be that alfresco's authentication mechanism (or whatever) checks if the JSESSIONID cookie's path is /alfresco…

Hope this will help somebody, since I have lost about 1 day to solve this %*#'(!! issue…