Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-1013

Parse self closing tag in Atom response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • PortCMIS 0.1.0
    • None
    • portcmis
    • None
    • .NET Framework 4.5
      Windows 10 Enterprise

    Description

      PortCMIS is not parsing an Atom response correctly when there is a self closing tag in an objects properties, e.g. (see complete example feed attached)

      <cmisra:object>
          <cmis:properties>
              <cmis:propertyId propertyDefinitionId="cmis:objectId" displayName="Object Id" localName="objectId" queryName="cmis:objectId">
                  <cmis:value>7fcaf062-45d3-46de-a2f0-6d4b21ec3adc</cmis:value>
              </cmis:propertyId>
              <cmis:propertyString propertyDefinitionId="cm:tagScopeSummary" displayName="Tag Summary" localName="tagScopeSummary" queryName="cm:tagScopeSummary"/>
          </cmis:properties>
          <e1:aspects 
              xmlns:e1="http://www.alfresco.org">
              <e1:appliedAspects>P:cm:tagscope</e1:appliedAspects>
              <e1:appliedAspects>P:sys:unmovable</e1:appliedAspects>
              <e1:appliedAspects>P:cm:titled</e1:appliedAspects>
              <e1:appliedAspects>P:cm:ownable</e1:appliedAspects>
              <e1:appliedAspects>P:sys:localized</e1:appliedAspects>
              <e1:appliedAspects>P:sys:undeletable</e1:appliedAspects>
              <e1:properties>
                  <cmis:propertyString propertyDefinitionId="cm:tagScopeSummary" localName="tagScopeSummary" queryName="cm:tagScopeSummary" displayName="Tag Summary"/>
                  <cmis:propertyString propertyDefinitionId="cm:title" localName="title" queryName="cm:title" displayName="Title">
                      <cmis:value>ChrisTest</cmis:value>
                  </cmis:propertyString>
                  <cmis:propertyString propertyDefinitionId="cm:description" localName="description" queryName="cm:description" displayName="Description">
                      <cmis:value>Test Site created to test Bradley's SS connector</cmis:value>
                  </cmis:propertyString>
                  <cmis:propertyString propertyDefinitionId="cm:owner" localName="owner" queryName="cm:owner" displayName="Owner">
                      <cmis:value>admin</cmis:value>
                  </cmis:propertyString>
              </e1:properties>
          </e1:aspects>
      </cmisra:object>
      

      Self closing tags in the cmis:properties section seem to parse fine, but the self closing tag in the e1:aspects section breaks the HandleExtension method on XmlWalker.cs, casing the rest of the feed to be absorbed into the first entry

      Attachments

        1. atomsites.xml
          33 kB
          Bradley Moorfield

        Issue Links

          Activity

            People

              fmui Florian Müller
              bradmoor Bradley Moorfield
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: