cancel
Showing results for 
Search instead for 
Did you mean: 

Webscripts not working over SSL

zvukovic
Champ in-the-making
Champ in-the-making
Hi all,
My team have request to switch Alfresco to work over SSL. We are using Alfresco 3.2.
We have configured SSL on Apache which is in front of Alfresco. Same is if we configure it on Tomcat level.
After SSL is configured we have tried to access Alfresco data over SSL and everything was ok beside webscripts.
When we try to access some webform which is using websripts in backend to include dynamic webform we get an error message.
Over HTTP everything is fine. This is how we include webscripts inside webforms

<xs:include schemaLocation="webscript://path_to_script"/>

Do you have any idea what can be issue?

Thanks
Zeljko
1 REPLY 1

zvukovic
Champ in-the-making
Champ in-the-making
Hi all,
Still we can not find any solution for this and here is more infor if maybe anybody have any clue.
SSL is configured on tomcat and over HTTP everything is fine but when we try to access alfresco over HTTPS we get this issue

org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 117 column 85: src-resolve: Cannot resolve the name 'mt:lens-category-list' to a(n) 'type definition' component. 

This is schema we are including with webscript. We use it to populate drop-down fields, multiple checkboxe and multivalue fields in our webforms

<xs:schema  targetNamespace="http://www.alfresco.org/alfresco/MT"
         xmlns:mt="http://www.alfresco.org/alfresco/MT"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
             xmlns:alf="http://www.alfresco.org
            elementFormDefault="qualified">

//from webscript ${element} value is replaced with lens
// and we are iterating through list of values to populate enumeration
   <xs:simpleType name="${element}-category-list">
      <xs:restriction base="xs:normalizedString">
         <#if values??>
            <#list values as value>
               <xs:enumeration value="${value.id}">
                  <xs:annotation>
                     <xs:appinfo>
                        <alf:label>${value.label}</alf:label>
                     </xs:appinfo>
                  </xs:annotation>
               </xs:enumeration>
            </#list>
         </#if>
      </xs:restriction>
   </xs:simpleType>
    <xs:simpleType name="${element}-list">
        <xs:list itemType="mt:${element}-category-list"/>
    </xs:simpleType>
</xs:schema>

And in webform *.xsd file this is called like this


         <xs:element name="Lens" type="mt:lens-category-list" minOccurs="0" maxOccurs="1">
               <xs:annotation>
                  <xs:appinfo>
                     <alf:appearance>minimal</alf:appearance>
                     <alf:label>Lens ID</alf:label>
                  </xs:appinfo>
               </xs:annotation>
         </xs:element>  



I appreciate any help/idea we can get in order to overcome this issue?

Thanks
Zeljko