Folder rename failure or feature needed.

Help
2008-11-28
2013-04-16
  • I'm using davfs2 in Ubuntu 8.10 to connect to Alfresco 2.1 Community and everything works well except that i can not rename or move a folder.

    It looks as it might be a bug in Alfresco Community ( there are some similar bugs reported in Alfresco ) but the fact is that this works in Mac OS X and with Novell Netdrive in Windows. In fact renaming even works in Linux with fusedav (but many other things don't work in fusedav) although it logs many errors while doing so.

    Maybe there are different ways of doing a rename/move in Webdav and activating a different way should be a configuration option.

    I include some debug info from davfs2 failing to rename, and some other debug from fusedav doing it right. I hope it helps in some way:

    davfs2 failing to rename a folder:

    Nov 28 09:43:14 iblanco-desktop mount.davfs: Sending request headers: MOVE /alfresco/webdav/probak/conmk2/ HTTP/1.1^M Host: 150.241.235.42^M User-Agent: davfs2/1.3.3 neon/0.28.2^M Connection: TE^M TE: trailers^M Destination: http://150.241.235.42/alfresco/webdav/probak/conmv2/^M Overwrite: T^M Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M Cookie: $Version=1;JSESSIONID=5EA44B0CECBAC502BC64F5673F991179;^M ^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Sending request-line and headers:
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Request sent; retry is 1.
    Nov 28 09:43:14 iblanco-desktop mount.davfs: [status-line] < HTTP/1.1 401 No Autorizado^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: [hdr] Server: Apache-Coyote/1.1^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Header Name: [server], Value: [Apache-Coyote/1.1]
    Nov 28 09:43:14 iblanco-desktop mount.davfs: [hdr] Content-Type: text/html;charset=utf-8^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Header Name: [content-type], Value: [text/html;charset=utf-8]
    Nov 28 09:43:14 iblanco-desktop mount.davfs: [hdr] Content-Length: 963^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Header Name: [content-length], Value: [963]
    Nov 28 09:43:14 iblanco-desktop mount.davfs: [hdr] Date: Fri, 28 Nov 2008 08:43:14 GMT^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Header Name: [date], Value: [Fri, 28 Nov 2008 08:43:14 GMT]
    Nov 28 09:43:14 iblanco-desktop mount.davfs: [hdr] ^M
    Nov 28 09:43:14 iblanco-desktop mount.davfs: End of headers.
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Running post_headers hooks
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Reading 963 bytes of response body.
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Got 963 bytes.
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Running post_send hooks
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Request ends, status 401 class 4xx, error line: 401 No Autorizado
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Running destroy hooks.
    Nov 28 09:43:14 iblanco-desktop mount.davfs: Request ends.
    Nov 28 09:43:14 iblanco-desktop mount.davfs: RET: Error de entrada/salida
    Nov 28 09:43:16 iblanco-desktop mount.davfs: SELECT: 1
    Nov 28 09:43:16 iblanco-desktop mount.davfs: FUSE_LOOKUP:
    Nov 28 09:43:16 iblanco-desktop mount.davfs:   p 0x81d8788, probak
    Nov 28 09:43:16 iblanco-desktop mount.davfs: lookup /alfresco/webdav/probak
    Nov 28 09:43:16 iblanco-desktop mount.davfs: RET: Éxito

    fusedav renaming the folder:
    getattr(/alfresco/webdav/probak)
    CGET: /alfresco/webdav/probak
    getattr(/alfresco/webdav/probak/conmv2)
    CGET: /alfresco/webdav/probak/conmv2
    STAT-CACHE-MISS
    PROPFIND failed: 404 No Encontrado
    getattr(/alfresco/webdav/probak/conmk2)
    CGET: /alfresco/webdav/probak/conmk2
    getattr(/alfresco/webdav/probak/conmv2)
    CGET: /alfresco/webdav/probak/conmv2
    STAT-CACHE-MISS
    PROPFIND failed: 404 No Encontrado
    getattr(/alfresco/webdav/probak/conmv2)
    CGET: /alfresco/webdav/probak/conmv2
    STAT-CACHE-MISS
    PROPFIND failed: 404 No Encontrado
    rename(/alfresco/webdav/probak/conmk2, /alfresco/webdav/probak/conmv2)
    CGET: /alfresco/webdav/probak/conmk2

    By the way, I downloaded the latest CVS version but wasn't able to compile it. I read something about putting it into the kernels source tree. Can't I just compile the davfs2 tool ?

     
    • Werner Baumann
      Werner Baumann
      2008-11-29

      According to the log the server respondes with "401 Unauthorized" to the MOVE request. This is strange, assuming previous requests (PROPFIND, GET, OPTIONS) where successful.
      Could you create a new file or edit an existing file?

      Please send the full log from mount.davfs. It may give some hint why some requests succeed and this one is refuse with 401 Unauthorized.

      The log from fusedav does not show a MOVE request. But it does not show the requests and responses anyway. What would be helpful would be to capture the HTTP-traffic from a successful renaming operation of fusedav.

      Cheers
      Werner

      P.S.: Concernig Mac OS and Novell. Unfortunately there is a lot of nonstandard behaviour form servers and clients as well as optional parts in the protocal and different interpretations of the protocol. But it is hard to tell
      - does it not work because of a server bug or a client bug?
      - does it work because server and client have no bugs or because they have the same bug?

       
    • Werner Baumann
      Werner Baumann
      2008-11-30

      "By the way, I downloaded the latest CVS version but wasn't able to compile it. I read something about putting it into the kernels source tree."
      You probably got module "davfs" which is dead for many years. You need to get "davfs2".

       
  • springmoons
    springmoons
    2012-04-27

    In August 2009, India Raymond Weil set up Kyocera Asia Pacific (India) Pvt. Ltd. October 2009 inamorikazuo the Honorary President and Vice Chairman of the national people's Congress to visit Japan, CAs President Lu Yongxiang met in March 2010 in Japan's Shiga, wild island (now Shiga Yzs factory) solar cell factories in June 2010 for the completion Emporio Armani of undertaking Sony Mobile Display Corporation, wild island of Kyocera TFT liquid glashutte original crystal display business social impact the company's 2001 donation of $ 1 million to establish the West development scholarship,  2002 300 million dollar investment in shilong town, Dongguan city, Guangdong Province