summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* devblogGravatar Joey Hess2017-09-15
|
* webdav: Changed path used on webdav server for temporary files.Gravatar Joey Hess2017-09-15
| | | | | | | | | Done to avoid a "tmp" directory appearing in webdav exports. Also affects non-export webdav remotes, so interrupted uploads using the old path will not overwrite it. However, PUT is quite likely to be implemented atomically on web servers anyway, so I doubt this will cause problems.
* empty directory removal workingGravatar Joey Hess2017-09-15
|
* remove empty directories when removing from exportGravatar Joey Hess2017-09-15
| | | | | | | | | | | | | | | The subtle part of this is what happens when the remote fails to remove an empty directory. The removal from the export needs to fail in that case, so the removal will be tried again later. However, removeExportLocation has already been run and changed the export db, so if the next run checks getExportLocation, it might decide nothing remains to be done, leaving the empty directory. Dealt with that by making removeEmptyDirectories, handle a failure by calling addExportLocation, reverting the database changes so the next run will be guaranteed to try deleting the empty directory again. This commit was sponsored by Thomas Hochstein on Patreon.
* add table to keep track of what subdirectories are populated in the exportGravatar Joey Hess2017-09-15
| | | | | | So empty subdirectories can be identified and removed. This commit was sponsored by Jochen Bartl on Patreon.
* add missing caseGravatar Joey Hess2017-09-15
|
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2017-09-15
|\
* | implement removeExportDirectoryGravatar Joey Hess2017-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not yet called by Command.Export. WebDAV needs this to clean up empty collections. Also, example.sh turned out to not be cleaning up directories when removing content from them, so it made sense for it to use this. Remote.Directory did not need it, and since its cleanup method for empty directories is more efficient than what Command.Export will need to do to find empty directories, it uses Nothing so that extra work can be avoided. This commit was sponsored by Thom May on Patreon.
* | forwarded from ircGravatar Joey Hess2017-09-15
| |
* | updateGravatar Joey Hess2017-09-15
| |
| * (no commit message)Gravatar tomasz2017-09-15
| |
* | /dev/null stderr when generating completionsGravatar Joey Hess2017-09-14
| | | | | | | | avoid usage display when too old optparse-applicative
| * Added a comment: @joey: Sorry ...Gravatar benjamin.poldrack@d09ccff6d42dd20277610b59867cf7462927b8e32017-09-14
| |
* | updateGravatar Joey Hess2017-09-13
|/
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2017-09-13
|\
* | fix build with old http-clientGravatar Joey Hess2017-09-13
| |
* | work around box.com webdav rename bugGravatar Joey Hess2017-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently box.com renaming is just buggy. I tried a couple of fixes: * In case the http Manager was opening multiple connections and reaching different backend servers, I tried limiting the number of connections to 1. Didn't help. * To make sure it was not a http connection reuse problem, I tried rewriting how exportAction works, so that the same http connection is clearly open. Didn't help. So, disable renaming of exports for box.com. It would be good to test it with some other webdav server. This commit was sponsored by John Peloquin on Patreon.
* | fix exporting files in subdirectories to webdavGravatar Joey Hess2017-09-13
| | | | | | | | | | | | | | Use tmp/key when exporting, so the whole export directory structure does not have to be created under tmp/ This commit was sponsored by Denis Dzyubenko on Patreon.
* | add Command.ExportGravatar Joey Hess2017-09-13
| |
| * Added a commentGravatar yarikoptic2017-09-13
| |
* | cleanup importsGravatar Joey Hess2017-09-13
|/
* commentGravatar Joey Hess2017-09-13
|
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2017-09-13
|\
* | trust level overridden message adjusted for forced untrusted export remotesGravatar Joey Hess2017-09-13
| |
* | clear exportSupported for non-export remotesGravatar Joey Hess2017-09-13
| | | | | | | | | | Non-export remotes were being treated as untrusted, so the test suite failed, and probably other things broke.
| * Added a commentGravatar yarikoptic2017-09-13
| |
| * crossed away comment on hash levelsGravatar yarikoptic2017-09-13
| |
| * initial finding about incorrect permissions ignored by fsckGravatar yarikoptic2017-09-13
|/
* fix compaction of export.logGravatar Joey Hess2017-09-12
| | | | | | | | It was not getting old lines removed, because the tree graft confused the updater, so it union merged from the previous git-annex branch, which still contained the old lines. Fixed by carefully using setIndexSha. This commit was supported by the NSF-funded DataLad project.
* devblogGravatar Joey Hess2017-09-12
|
* change export.log format to support multiple export remotesGravatar Joey Hess2017-09-12
| | | | | | | This breaks backwards compatibility, but only with unreleased versions of git-annex, which I think is acceptable. This commit was supported by the NSF-funded DataLad project.
* remove debug printGravatar Joey Hess2017-09-12
|
* bugGravatar Joey Hess2017-09-12
|
* export: cache connections for S3 and webdavGravatar Joey Hess2017-09-12
|
* more box.com strangenessGravatar Joey Hess2017-09-12
|
* webdav: Fix lack of url-escaping of filenames.Gravatar Joey Hess2017-09-12
| | | | | | | | | | | | | inDAVLocation does not url-escape, and so exporting a filename with spaces to box.com at least resulted in a error 400. It might also have affected storing keys on a webdav remote, if the key contained a space or other problem character. Pretty unlikely. I emailed Clint about the inDAVLocation gotcha, but seems best to fix it here. This commit was supported by the NSF-funded DataLad project.
* document box.com rename problemGravatar Joey Hess2017-09-12
|
* deal with box.com horrible infinite redirect behaviorGravatar Joey Hess2017-09-12
| | | | | | | | | | | | | | | | | | | webdav: Checking if a non-existent file is present on Box.com triggered a bug in its webdav support that generates an infinite series of redirects. It seems to redirect foo to foo/ to foo/index.php to foo/index.php/index.php ... Why a webdav endpoint would behave this way who knows. Deal with such problems by assuming such behavior means the file is not present. Can't simply disable following redirects, because the webdav endpoint could legitimately be redirected to a new endpoint. So, when this happens 10 redirects have to be followed, before it gives up and assumes this means the file does not exist. This commit was supported by the NSF-funded DataLad project.
* leave export logged as incomplete if initial renames failGravatar Joey Hess2017-09-12
| | | | | | | | | | This way, the temp files that might be left due to failure will be cleaned up next time. Also, nub the list of incomplete exports to avoid repeatedly adding the same tree to it when running export repeatedly when it's failing. This commit was supported by the NSF-funded DataLad project.
* export to webdavGravatar Joey Hess2017-09-12
| | | | | | | | | | | This basically works, but there's a bug when renaming a file that leaves a .git-annex-temp-content-key file in the webdav store, that never gets cleaned up. Also, exporting files with spaces to box.com seems to fail; perhaps it does not support it? This commit was supported by the NSF-funded DataLad project.
* update copyright yearGravatar Joey Hess2017-09-12
|
* propigate exception in checkPresentExportS3Gravatar Joey Hess2017-09-12
| | | | checkPresentExport is supposed to throw exceptions
* stop warning about removals from IAGravatar Joey Hess2017-09-12
| | | | | | | In a test, I uploaded a pdf, and several files were derived from it. After removing the pdf, the derived files went away after approximatly half an hour. This window does not seem worth warning about every time. Documented it in the tip.
* avoid showing error when copy failsGravatar Joey Hess2017-09-12
| | | | | | | | | | | | | Since renameExport is allowed to fail for any reason, and its failure is always recovered from by doing a new upload and deleting the old content, this avoids unnecessary noise. Copying a file on the IA failed, apparently something wrong with their emulation of S3: S3Error {s3StatusCode = Status {statusCode = 400, statusMessage = "Bad Request"}, s3ErrorCode = "InvalidArgument", s3ErrorMessage = "Invalid Argument", s3ErrorResource = Just "x-(amz|archive)-copy-source header is bad: 'joeyh-public-test2/foo'", s3ErrorHostId = Nothing, s3ErrorAccessKeyId = Nothing, s3ErrorStringToSign = Nothing, s3ErrorBucket = Nothing, s3ErrorEndpointRaw = Nothing, s3ErrorEndpoint = Nothing} This commit was sponsored by Jake Vosloo on Patreon.
* S3: Allow removing files from IA, but warn about derived versions ↵Gravatar Joey Hess2017-09-12
| | | | | | | | | | | | | potentially still existing there. Removal works, only derives are a potential issue, so allow removing with a warning. This way, unexporting a file works, and behavior is consistent with IA remotes whether or not exporttree=yes. Also tested exporting filenames containing unicode, spaces, underscores. All worked, despite the IA's faq saying it doesn't. This commit was sponsored by Trenton Cronholm on Patreon.
* Added a comment: Issue also affects Samsung devices, git unaffectedGravatar https://christian.amsuess.com/chrysn2017-09-11
|
* Added a comment: The initremote command appears to hang due to low entropyGravatar NathanCollins2017-09-10
|
* (no commit message)Gravatar ilovezfs2017-09-09
|
* closeGravatar Joey Hess2017-09-09
|
* (no commit message)Gravatar ilovezfs2017-09-09
|