Nick Craig-Wood
d0c65b4c5e
copyurl: fix copying files that return HTTP errors
2019-08-07 22:29:44 +01:00
Nick Craig-Wood
e502be475a
azureblob/b2/dropbox/gcs/koofr/qingstor/s3: fix 0 length files
...
In 0386d22cc9
we introduced a test for 0 length files read the
way mount does.
This test failed on these backends which we fix up here.
2019-08-06 15:18:08 +01:00
negative0
27a075e9fc
rcd: Removed the shorthand for webgui. Shorthand is reserved for rsync compatibility.
2019-08-06 12:50:31 +01:00
Nick Craig-Wood
5065c422b4
lib/random: unify random string generation into random.String
...
This was factored from fstest as we were including the testing
enviroment into the main binary because of it.
This was causing opening the browser to fail because of 8243ff8bc8
.
2019-08-06 12:44:08 +01:00
Nick Craig-Wood
72d5b11d1b
serve restic: rename test file to avoid it being linked into main binary
2019-08-06 12:42:52 +01:00
Nick Craig-Wood
526a3347ac
rcd: Fix permissions problems on cache directory with web gui download
2019-08-06 12:06:57 +01:00
Nick Craig-Wood
23910ba53b
servetest: add tests for --auth-proxy
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
ee7101e6af
serve: factor out common testing parts for ftp, sftp and webdav tests
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
36c1b37dd9
serve webdav: support --auth-proxy
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
72782bdda6
serve ftp: implement --auth-proxy
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
b94eef16c1
serve ftp: refactor to bring into line with other serve commands
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
d75fbe4852
serve sftp: implement auth proxy
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
e6ab237fcd
serve: add auth proxy infrastructure
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
a7eec91d69
vfs: add Fs() method to return underlying fs.Fs
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
b3e94b018c
cache: factor fs cache into lib/cache
2019-08-06 11:43:42 +01:00
Nick Craig-Wood
ca0e9ea55d
build: add Azure Pipelines build status to README
2019-08-06 10:46:36 +01:00
Nick Craig-Wood
53e3c2e263
build: add azure pipelines build
2019-08-06 10:31:32 +01:00
Nick Craig-Wood
02eb747d71
serve http/webdav/restic: implement --prefix - fixes #3398
...
--prefix enables the servers to serve from a non root prefix. This
enables easier proxying.
2019-08-06 10:30:48 +01:00
Chaitanya Bankanhal
d51a970932
rcd: Change URL after webgui move to rclone organization
2019-08-05 16:22:40 +01:00
Nick Craig-Wood
a9438cf364
build: add .gitattributes to mark generated files
...
This makes sure that GitHub ignores the auto generated documentation
files for language detection and diffs.
See: https://github.com/github/linguist#overrides for more info
2019-08-04 15:20:15 +01:00
Nick Craig-Wood
5ef3c988eb
bin: add script to test all commits compile for git bisect
2019-08-04 13:29:59 +01:00
Nick Craig-Wood
78150e82a2
docs: update bugs and limitations document
2019-08-04 12:33:39 +01:00
Nick Craig-Wood
6f0cc51eeb
Add Chaitanya Bankanhal to contributors
2019-08-04 12:33:39 +01:00
Chaitanya Bankanhal
84e2806c4b
rc: Rclone-WebUI integration with rclone
...
This adds experimental support for web gui integration so that rclone can fetch and run a web based GUI using the --rc-web-ui and related flags.
It downloads and caches a webui zip file which it then unpacks and opens in the browser.
2019-08-04 12:32:37 +01:00
Nick Craig-Wood
0386d22cc9
vfs: add test for 0 length files read in the way mount does
2019-08-03 18:25:44 +01:00
Nick Craig-Wood
0be14120e4
swift: use FixRangeOption to fix 0 length files via the VFS
2019-08-03 18:25:44 +01:00
Nick Craig-Wood
95af1f9ccf
fs: fix FixRangeOption so it works with 0 length files
2019-08-03 18:25:44 +01:00
Nick Craig-Wood
629b7eacd8
b2: fix integration tests after accounting changes
...
In 53a1a0e3ef
we started returning non nil from NewObject when
an object isn't found. This breaks the integration tests and the API
expected of a backend.
This fixes it.
2019-08-03 13:30:31 +01:00
yparitcher
d3149acc32
b2: link sharing
2019-08-03 13:30:31 +01:00
Aleksandar Jankovic
6a3e301303
accounting: add call to clear stats
...
- Make calls more consistent by changing path to kebab case.
- Add stacktrace information to job panics
2019-08-02 16:56:19 +01:00
Nick Craig-Wood
5be968c0ca
drive: update API for teamdrive use - fixes #3348
2019-08-02 16:06:23 +01:00
Nick Craig-Wood
f1a687c540
Add justina777 to contributors
2019-08-02 15:57:25 +01:00
justina777
94ee43fe54
log: add object and objectType to json logs
2019-08-02 15:57:09 +01:00
Nick Craig-Wood
c2635e39cc
build: fix appveyor secure variables after project move
2019-07-28 22:46:26 +01:00
Nick Craig-Wood
8c511ec9cd
docs: fix star count on website
2019-07-28 20:58:21 +01:00
Nick Craig-Wood
ac0dce78d0
cmd: fix up stats printing on macOS after accounting change
2019-07-28 20:38:20 +01:00
Nick Craig-Wood
f347514f62
build: fix up CI and CI badges after repo move
2019-07-28 20:07:04 +01:00
Nick Craig-Wood
57d5de6fba
build: fix up package paths after repo move
...
git grep -l github.com/ncw/rclone | xargs -d'\n' perl -i~ -lpe 's|github.com/ncw/rclone|github.com/rclone/rclone|g'
goimports -w `find . -name \*.go`
2019-07-28 18:47:38 +01:00
Aleksandar Jankovic
4ba6532915
accounting: make stats response consistent
...
core/stats can return two different schemas in 'transferring' field.
One is object with fields the other is just plain string.
This is confusing, unnecessary and makes defining response schema
more difficult. It also returns `lastError` as value which can be
rendered differently depending on source of error.
This change standardizes 'transferring' filed to always return
object but with reduced fields if they are not available.
Former string item is converted to {name:remote_name} object.
'lastError' is forced to be a string as in some cases it can be encoded
as an object.
2019-07-28 14:48:19 +01:00
Aleksandar Jankovic
ff235e4e56
docs: update documentation for stats
2019-07-28 14:48:19 +01:00
Aleksandar Jankovic
68e641f6cf
accounting: add limits and listing to stats groups
2019-07-28 14:48:19 +01:00
Aleksandar Jankovic
53a1a0e3ef
accounting: add reference to completed transfers
...
Add core/transferred call that lists completed transfers and their
status.
2019-07-28 14:48:19 +01:00
Aleksandar Jankovic
8243ff8bc8
accounting: isolate stats to groups
...
Introduce stats groups that will isolate accounting for logically
different transferring operations. That way multiple accounting
operations can be done in parallel without interfering with each other
stats.
Using groups is optional. There is dedicated global stats that will be
used by default if no group is specified. This is operating mode for CLI
usage which is just fire and forget operation.
For running rclone as rc http server each request will create it's own
group. Also there is an option to specify your own group.
2019-07-28 14:48:19 +01:00
Aleksandar Jankovic
be0464f5f1
accounting: change stats interface
...
This is done to make clear ownership over accounting object and prepare
for removing global stats object.
Stats elapsed time calculation has been altered to account for actual
transfer time instead of stats creation time.
2019-07-28 14:48:19 +01:00
Nick Craig-Wood
2d561b51db
Add EliEron to contributors
2019-07-28 12:33:21 +01:00
Nick Craig-Wood
9241a93c2d
Add justinalin to contributors
2019-07-28 12:33:21 +01:00
EliEron
fb32f77bac
Docs: Fix typos in filtering demonstrations
2019-07-28 12:32:53 +01:00
justinalin
520fb03bfd
log: add --use-json-log for JSON logging
2019-07-28 12:05:50 +01:00
justinalin
a3449bda30
vendor: add github.com/sirupsen/logrus
2019-07-28 12:05:50 +01:00
yparitcher
ccc416e62b
b2: Fix link sharing #3314
2019-07-28 11:47:31 +01:00