<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Different file upload behavior for WebDAV and AOS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/different-file-upload-behavior-for-webdav-and-aos/m-p/93522#M27653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm experiencing different behaviors from the WebDAV and AOS protocols when trying to upload a file to Alfresco Community 6.1.2 (having the alfresco-aos-module-1.2.2.amp and the _vti_bin.war installed). When uploading a file using the HTTP PUT verb everything works fine in the WebDAV case:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;$ curl -i -u admin:admin -T '/path/to/file/test.txt' "http://repo1:8080/alfresco/&lt;STRONG&gt;webdav&lt;/STRONG&gt;/Sites/swsdp/documentLibrary/test.txt"&lt;BR /&gt;HTTP/1.1 100 &lt;BR /&gt;&lt;BR /&gt;HTTP/1.1 201 &lt;BR /&gt;Set-Cookie: JSESSIONID=DC856FA6BB3E1D33CA91C72A6B21FD50; Path=/alfresco; HttpOnly&lt;BR /&gt;Content-Length: 0&lt;BR /&gt;Date: Thu, 09 May 2019 07:43:11 GMT&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But when I do the same request in the AOS case&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;$ curl -i -u admin:admin -T '/path/to/file/test.txt' "http://repo1:8080/alfresco/&lt;STRONG&gt;aos&lt;/STRONG&gt;/Sites/swsdp/documentLibrary/test2.txt"&lt;BR /&gt;HTTP/1.1 100 &lt;BR /&gt;&lt;BR /&gt;HTTP/1.1 201 &lt;BR /&gt;MicrosoftSharePointTeamServices: 15.0.0.4420&lt;BR /&gt;Set-Cookie: JSESSIONID=858347E93D94B60CF691E87E8515FA91; Path=/alfresco; HttpOnly&lt;BR /&gt;MS-Author-Via: MS-FP/4.0,DAV&lt;BR /&gt;MicrosoftOfficeWebServer: 5.0_Collab&lt;BR /&gt;DocumentManagementServer: Properties Schema;Source Control;Version History;&lt;BR /&gt;DAV: 1,2&lt;BR /&gt;Allow: GET, POST, OPTIONS, HEAD, MKCOL, PUT, PROPFIND, PROPPATCH, DELETE, MOVE, COPY, GETLIB, LOCK, UNLOCK&lt;BR /&gt;Accept-Ranges: none&lt;BR /&gt;Cache-Control: no-cache&lt;BR /&gt;Last-Modified: Thu, 09 May 2019 07:46:02 GMT&lt;BR /&gt;ETag: "{FE671785-D825-4699-B9E6-4984E8D3C139},-1685166175"&lt;BR /&gt;ResourceTag: rt:{FE671785-D825-4699-B9E6-4984E8D3C139}@00001000000&lt;BR /&gt;Content-Length: 0&lt;BR /&gt;Date: Thu, 09 May 2019 07:46:02 GMT&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The HTTP status code looks fine (201), and the file is actually created in the document library, but there is no content in the file (i.e. its size is marked as 0 bytes) and the following error is seen in the logs:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2019-05-09 09:46:02,074&amp;nbsp; ERROR [aosmodule.vfs.DocumentNode] [http-nio-8080-exec-6] Error writing content.&lt;BR /&gt;&amp;nbsp;org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/fe671785-d825-4699-b9e6-4984e8d3c139 (status:null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:187)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl.hasAspect_aroundBody38(DbNodeServiceImpl.java:1015)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl$AjcClosure39.run(DbNodeServiceImpl.java:1)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any idea on what the problem could be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(other requests (MKCOL, GET, DELETE) work fine in both the WebDAV and AOS case)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2019 07:55:54 GMT</pubDate>
    <dc:creator>kring</dc:creator>
    <dc:date>2019-05-09T07:55:54Z</dc:date>
    <item>
      <title>Different file upload behavior for WebDAV and AOS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/different-file-upload-behavior-for-webdav-and-aos/m-p/93522#M27653</link>
      <description>I'm experiencing different behaviors from the WebDAV and AOS protocols when trying to upload a file to Alfresco Community 6.1.2 (having the alfresco-aos-module-1.2.2.amp and the _vti_bin.war installed). When uploading a file using the HTTP PUT verb everything works fine in the WebDAV case:$ curl -i</description>
      <pubDate>Thu, 09 May 2019 07:55:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/different-file-upload-behavior-for-webdav-and-aos/m-p/93522#M27653</guid>
      <dc:creator>kring</dc:creator>
      <dc:date>2019-05-09T07:55:54Z</dc:date>
    </item>
  </channel>
</rss>

