Commit graph

1334 commits

Author SHA1 Message Date
abraunegg 0febd67bd3 Add Microsoft naming conventions and namespace validation for items that will be uploaded
* Add Pull #104 (@JunpeiAnzai) to ensure that uploaded files conform to
Windows naming conventions and namespaces. Refer to
https://msdn.microsoft.com/en-us/library/aa365247 for further details
regarding Windows naming conventions and namespaces.
2018-04-13 11:20:38 +10:00
abraunegg 21f4d8e858 Add init.d service file & modify how configDirName is set
* Add init.d service file & helper script to start service
* Change how configDirName is set as XDG_CONFIG_HOME does not exist on
systems where X11 is not present. When using init scripts and using
XDG_CONFIG_HOME, ~ is not expanded thus existing config cannot be found.
Using ~ in --confdir also does not work when running under init.d
2018-04-13 09:33:16 +10:00
abraunegg 9b361101f6 Update systemd service files
* Update single user file so that it requries the network to be online
before the service starts
* Create a multi-user service file for multi-user environments with each
user having their own onedrive account configuration (#321) - file
provided by @sbocquet
2018-04-12 12:43:23 +10:00
abraunegg ace9482f23
Update README.md 2018-04-12 12:20:44 +10:00
abraunegg 091e675d85 Update README.md based on current changes made
* Update readme
* Tweak logging output based on sync options selected
2018-04-12 10:18:18 +10:00
abraunegg 7eb11f0b44 Log why we are skipping a large file for upload
Log the reason why a file is not being uploaded (missed this in fec7654)
2018-04-12 08:44:52 +10:00
abraunegg fec7654118 Resolve Issues #121, #294, #329
Resolve onedrive crash when uploading files that exceed the allowed
OneDrive individual file limit
2018-04-12 07:31:42 +10:00
abraunegg 570d42269e Fix onedrive not syncing "hidden" directories
* Fix the handling of hidden filenames & directories (.hello, .git etc)
so that these are uploaded / downloaded without issue.
* Add verbose logging for uploaded files as to why they were skipped
2018-04-11 13:02:06 +10:00
abraunegg 5e0e763317 Change logging of upload, download and deletion activities
Prior to this change logging of upload, download and deletion activities
were only written to the log file when using the --verbose flag, however
they would be written to console / syslog. This corrects that behaviour.
2018-04-10 20:03:28 +10:00
abraunegg f1aa190a91 Add uploadOnly flag and add username to logfile name
* Add specific uploadOnly flag so that the onedrive client only uploads
data from the local directory and does not download changes from
OneDrive
* Change the logfile name to include the username running the onedrive
client
2018-04-07 17:06:57 +10:00
abraunegg 8463e60acc Update onedrive.d to remove '&'
Change '&error' to 'error' on line 37 of onedrive.d

Issue uncovered where prior code with '&' would compile without issue on
DMD reference compiler v2.078.3 and below, but using '2.079.0' this
would throw an error if '&' was present.

The original patch added the '&' to get the code to compile, this simple
reverts this change.

Note: For future reference compile this code with DMD v2.079.0 or later.
2018-03-30 08:14:00 +11:00
abraunegg dd73ae3c4b OneDrive Client Changes
* Fix 4xx errors including (412 pre-condition)
* Add Logging - log to a file (/var/log/onedrive/onedrive.log)
* Add http(s) debugging as a flag
* Add dont sync when just blindly running the application
* Add individual folder sync - ie ~/OneDrive/blah/ vs. syncing
everything in ~/OneDrive/
* Add sync from local directory first rather than download first then
upload
* Add upload long path check (430 character limitation)
2018-03-14 15:43:40 +11:00
skilion c231b13ad4 Disabled buffering on stdout 2018-02-18 18:24:46 +01:00
skilion 008a5756b3 Fix crash when the delta link is expired 2018-02-18 18:02:38 +01:00
skilion d9a5d1b3b9 fix regex for parsing authentication uri 2018-01-20 21:13:01 +01:00
skilion 29d9b74c44
Merge pull request #281 from mgor/master
invalid_grant, error 70000
2018-01-20 21:05:43 +01:00
Mikael Göransson a1e326f9b4 invalid_grant, error 70000
when trying to redeem an code, this error always occured, no matter
which parts of the response uri/url that was used.

the old regexp for parsing the code contained 3 groups, where as the
actual code always was the last group, and the second group was either ?
or &, and the first group would've been everything up until "code=".

changed from a matching group to character class so there would only be
two matching groups, so calling popFront() would actually leave the
authorization code in the front.
2018-01-20 20:51:33 +01:00
skilion 5d821c4440 release version 1.1.0 2018-01-19 23:08:48 +01:00
skilion 65707a3a07 Merge branch 'master' of github.com:skilion/onedrive 2018-01-19 19:00:28 +01:00
skilion 867c8ed26c improved regex 2018-01-19 18:56:14 +01:00
skilion 03f746a650 Grammar fix 2018-01-19 17:56:36 +01:00
skilion 099522dd0e Merge branch 'master' of bitbucket.org:skilion/onedrive-free-client 2018-01-19 17:53:45 +01:00
skilion bfcc0c8733 Improve wording 2018-01-19 17:53:22 +01:00
skilion ed6aa511e2
Merge pull request #280 from varmanishant/master
Grammar fix
2018-01-19 17:46:40 +01:00
Nishant Varma 9cf4b581d7 update readme 2018-01-19 16:48:47 +05:30
skilion c7e09304a6 fix for https://github.com/skilion/onedrive/issues/269 2018-01-06 21:59:05 +01:00
skilion abad626b3d ensures that the parentId of the root is null 2018-01-06 19:27:27 +01:00
skilion d624aec3ad added examples of relevant info for reporting issues 2018-01-06 18:01:07 +01:00
skilion bb3121e10d fix for https://github.com/skilion/onedrive/issues/269 2018-01-06 17:50:36 +01:00
skilion ac728df543 update readme 2018-01-02 21:25:27 +01:00
skilion ab592f134e update changelog 2018-01-02 16:59:10 +01:00
skilion 300b07df3b added DC variable in Makefile 2018-01-02 16:50:54 +01:00
skilion 9f7d9249bc restore prev redirect url 2018-01-02 16:32:16 +01:00
skilion 96c364c5fc removed tmp instruction 2018-01-02 15:06:20 +01:00
skilion d7f6674f60 removed redundant key parentDriveId 2018-01-02 15:05:32 +01:00
skilion 4ebc4a8544 handle move and delete of remote folders in monitor mode 2018-01-02 13:41:56 +01:00
skilion 9bedec0d7c handle moving items between drives 2018-01-01 18:38:08 +01:00
skilion c54d1927e9 do not throw in makeItem 2018-01-01 16:20:28 +01:00
skilion 764975e224 download only option 2017-12-31 17:11:17 +01:00
skilion 80cfdf62cf handle the case of deleting a remote folder locally 2017-12-31 16:56:56 +01:00
skilion fba3ed999e handle large uploads with parent id 2017-12-31 16:11:02 +01:00
skilion c8d5e03be8 upload files new with parent id 2017-12-31 13:47:18 +01:00
skilion 6907daa5e8 create dir with parent id 2017-12-31 13:18:11 +01:00
skilion 95c952fe62 handle deleting remote folders 2017-12-31 12:44:41 +01:00
skilion b7adc4d0cc WIP on remote folders 2017-12-31 02:30:31 +01:00
skilion b250214577 fix path handling of direct children of the root 2017-12-29 16:51:08 +01:00
skilion dd3e1b2861 fix wrong parameters in call 2017-12-29 12:24:26 +01:00
skilion 48559c592d fix handling root of remote item 2017-12-28 19:58:31 +01:00
skilion 90ab54cfc6 restore foreign keys and indices 2017-12-28 19:57:51 +01:00
skilion 8e91f57cb3 fix select children 2017-12-28 15:42:33 +01:00