{"thread":{"id":"16991","subject":"http push to WebDAV server fails (apache 2.2 under Win) - possible bug!?","startedAt":"2009-01-05T06:26:16Z","lastAt":"2009-02-13T02:14:58Z","messageCount":2,"participants":["Harald Weppner","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"99351","messageId":"65B460DF-29D3-4651-93C9-794946DA8437@gmx.net","threadId":"16991","inReplyTo":null,"subject":"http push to WebDAV server fails (apache 2.2 under Win) - possible bug!?","fromName":"Harald Weppner","fromEmail":"harry.weppner@gmx.net","sentAt":"2009-01-05T06:26:16Z","receivedAt":"2009-01-05T06:26:16Z","isPatch":false,"sender":{"key":"harry.weppner@gmx.net","avatar":null},"body":"Hi there,\n\njust trying to get started to host a remote repository on a WebDAV  \nshare (served by apache2.2 on Windows). When I attempt to push from my  \nlocal repository it indicates a 405 failure on a PUT of a  \n*opaquelocktoken:* resource (cf. apache access log below). I don't  \nknow WebDAV in detail to know what's going wrong here but the colon in  \nthe resource name looks suspicious as it's not a permitted character  \nunder Windows. Could this indeed be a problem of not escaping the  \nresource name properly?\n\nThanks & cheerio, Harry.\n\n > git push -v origin master\nPushing to http://user@example.com/webdav/repos/example.git/\nFetching remote heads...\n   refs/\n   refs/heads/\n   refs/tags/\nupdating 'refs/heads/master'\n   from 0000000000000000000000000000000000000000\n   to   d310d475c459f7440a9a4ab8ae518f3a91011eb2\n     sending 12 objects\nPUT 9d68391c5426d3b3c69a6b4c43c1110d13a710d5 failed, aborting (22/405)\nPUT 57964966cd88e6a3a61c46ed4b186f26d5133dab failed, aborting (22/405)\nPUT 7e03ccd9dcbb5a2770cc5e52aa168a97897ce01b failed, aborting (22/405)\nPUT 67d59f8095ad0b5d90b50b05634038c831871f05 failed, aborting (22/405)\nPUT 726f7925fa8539c202558d1cf7567c173fed6b42 failed, aborting (22/405)\nerror: failed to push some refs to 'http://user@example.com/webdav/repos/example.git/'\n\n\n\nHere's how the apache error log looks like\n\n[Sun Jan 04 21:51:27 2009] [error] [client xxx.xxx.xx.xxx] File does  \nnot exist: C:/xampp/webdav/repos/example.git/info/refs\n[Sun Jan 04 21:51:27 2009] [error] [client xxx.xxx.xx.xxx] File does  \nnot exist: C:/xampp/webdav/repos/example.git/objects/info/packs\n\n\nand this is apache's access log (showing the 405 errors)\n\n[04/Jan/2009:21:51:26 -0800] \"PROPFIND /webdav/repos/example.git/ HTTP/ \n1.1\" 207 588 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:27 -0800] \"HEAD /webdav/repos/example.git/info/refs  \nHTTP/1.1\" 404 - \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:27 -0800] \"HEAD /webdav/repos/example.git/objects/ \ninfo/packs HTTP/1.1\" 404 - \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:27 -0800] \"PROPFIND /webdav/repos/example.git/refs/  \nHTTP/1.1\" 207 2637 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:27 -0800] \"PROPFIND /webdav/repos/example.git/refs/ \nheads/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:27 -0800] \"PROPFIND /webdav/repos/example.git/refs/ \ntags/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:27 -0800] \"MKCOL /webdav/repos/example.git/refs  \nHTTP/1.1\" 301 433 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"MKCOL /webdav/repos/example.git/refs/  \nHTTP/1.1\" 405 1060 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"MKCOL /webdav/repos/example.git/refs/ \nheads HTTP/1.1\" 301 439 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"MKCOL /webdav/repos/example.git/refs/ \nheads/ HTTP/1.1\" 405 1060 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"LOCK /webdav/repos/example.git/refs/ \nheads/master HTTP/1.1\" 200 471 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/d3/ HTTP/1.1\" 404 1138 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/24/ HTTP/1.1\" 404 1138 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/62/ HTTP/1.1\" 404 1138 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/ca/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:28 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/9c/ HTTP/1.1\" 404 1138 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/7e/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/6f/ HTTP/1.1\" 404 1138 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/72/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/67/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/57/ HTTP/1.1\" 207 951 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PROPFIND /webdav/repos/example.git/ \nobjects/9d/ HTTP/1.1\" 207 950 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PUT /webdav/repos/example.git/objects/9d/ \n68391c5426d3b3c69a6b4c43c1110d13a710d5_opaquelocktoken: \n35019a69-7377-2545-a7fa-0f7888f6e3bc HTTP/1.1\" 405 1058 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PUT /webdav/repos/example.git/objects/ \n57/964966cd88e6a3a61c46ed4b186f26d5133dab_opaquelocktoken: \n35019a69-7377-2545-a7fa-0f7888f6e3bc HTTP/1.1\" 405 1058 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PUT /webdav/repos/example.git/objects/7e/ \n03ccd9dcbb5a2770cc5e52aa168a97897ce01b_opaquelocktoken: \n35019a69-7377-2545-a7fa-0f7888f6e3bc HTTP/1.1\" 405 1058 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PUT /webdav/repos/example.git/objects/67/ \nd59f8095ad0b5d90b50b05634038c831871f05_opaquelocktoken: \n35019a69-7377-2545-a7fa-0f7888f6e3bc HTTP/1.1\" 405 1058 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:29 -0800] \"PUT /webdav/repos/example.git/objects/ \n72/6f7925fa8539c202558d1cf7567c173fed6b42_opaquelocktoken: \n35019a69-7377-2545-a7fa-0f7888f6e3bc HTTP/1.1\" 405 1058 \"-\" \"git/1.6.1\"\n[04/Jan/2009:21:51:30 -0800] \"UNLOCK /webdav/repos/example.git/refs/ \nheads/master HTTP/1.1\" 204 - \"-\" \"git/1.6.1\"\n\n\n\n"},{"id":"104469","messageId":"alpine.DEB.1.00.0902130314220.26370@racer","threadId":"16991","inReplyTo":"65B460DF-29D3-4651-93C9-794946DA8437@gmx.net","subject":"Re: http push to WebDAV server fails (apache 2.2 under Win) - possible bug!?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-02-13T02:14:58Z","receivedAt":"2009-02-13T02:14:58Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 4 Jan 2009, Harald Weppner wrote:\n\n> just trying to get started to host a remote repository on a WebDAV share \n> (served by apache2.2 on Windows). When I attempt to push from my local \n> repository it indicates a 405 failure on a PUT of a *opaquelocktoken:* \n> resource (cf. apache access log below). I don't know WebDAV in detail to \n> know what's going wrong here but the colon in the resource name looks \n> suspicious as it's not a permitted character under Windows. Could this \n> indeed be a problem of not escaping the resource name properly?\n\nCould you try a recent 'next'?  We had a fix there which should solve your \nproblem, too.\n\nCiao,\nDscho\n"}]}