JaniruTEC
f740a93b6c
Applied suggestions from code review
...
Changed signature of afterExecuteTask
See: https://github.com/cryptomator/cryptomator/pull/2259/files#r875548549
--
Changed name of "afterExecute0" to "afterExecuteInternal"
See: https://github.com/cryptomator/cryptomator/pull/2259/files#r875551994
2022-05-27 01:48:11 +02:00
JaniruTEC
0040c8a5f8
Added catching executors
2022-05-17 16:30:23 +02:00
JaniruTEC
bcb2b088ba
Applied suggestions from code review
2022-04-13 00:46:11 +02:00
JaniruTEC
f123dff0cd
Merge remote-tracking branch 'origin/develop' into 1996-cli-version
...
# Conflicts:
# src/main/java/org/cryptomator/launcher/Cryptomator.java
2022-04-12 17:44:13 +02:00
JaniruTEC
12a21bbb71
Added "--version" (short: "-v")
2022-02-17 02:39:48 +01:00
JaniruTEC
1641a06d65
Renamed NO_PARENT_NO_MOUNT_POINT to UNUSED_ROOT_DIR in MountPointRequirement
2022-01-30 01:35:02 +01:00
JaniruTEC
080ddbbb01
Applied changes from code review.
2022-01-18 02:25:25 +01:00
JaniruTEC
b7902ad8fd
Merge branch 'develop' into feature/1888-existing-drive-letter-error
2022-01-09 00:35:32 +01:00
JaniruTEC
46a3a4fc11
Added error message if user tries to mount to occupied drive.
...
Fixes #1888
2021-12-13 00:46:18 +01:00
JaniruTEC
135b61070d
Fixed misspelled key
2021-06-23 22:48:18 +02:00
JaniruTEC
000f27e166
Fixed spelling mistakes that required API breaking changes
2021-06-12 01:56:15 +02:00
JaniruTEC
e1d83c996e
Fixed independent spelling mistakes
...
Added @SuppressWarnings("SpellCheckingInspection") to binary data (e.g. keys) or deliberately misspelled strings
2021-06-12 01:45:31 +02:00
JaniruTEC
0dc401883f
Enabled proofreading
...
Removed dict_* files from .gitignore
Added dict_de.xml
Added dict_project.xml
2021-06-12 01:35:36 +02:00
JaniruTEC
364d59fdf7
Added ".idea/**/shelf" to .gitignore
...
See: https://github.com/github/gitignore/blob/991e760c1c6d50fdda246e0178b9c58b06770b90/Global/JetBrains.gitignore#L9
2021-06-11 18:28:25 +02:00
JaniruTEC
f9545b5532
Refactored MPC priority
2021-06-09 01:16:51 +02:00
JaniruTEC
41d2a2c77e
Added .idea/uiDesigner.xml to .gitignore
2021-04-10 23:16:00 +02:00
JaniruTEC
23c113948f
Replaced catch with wildcard catch and added additional logger call
...
See #1509 for further information and reasoning
2021-01-25 16:21:35 +01:00
JaniruTEC
d86ea20c31
Fixed suppressed "invalid mountpoint" messages
...
Fixed #1515
2021-01-23 22:13:07 +01:00
JaniruTEC
422ce4a387
Moved actual choosing of MPCs to MountPointHelper
2020-11-18 16:27:43 +01:00
JaniruTEC
21387bd76c
Renamed IrregularUnmountCleaner to MountPointHelper
2020-11-18 16:18:31 +01:00
JaniruTEC
52cd560cb2
Generifyed #chooseMountPoint()
2020-11-18 16:09:09 +01:00
JaniruTEC
6c440dfbbb
Re-Added check for non-emtpy dirs
2020-11-18 15:53:33 +01:00
JaniruTEC
9083976989
Fixed #1409 by addig an additonal check
2020-11-18 00:46:24 +01:00
JaniruTEC
d9c5d76417
Fixed irregular quoting
2020-11-17 22:41:41 +01:00
JaniruTEC
c19c3754c6
Fixed high-spirited concatenation
2020-11-17 22:27:41 +01:00
JaniruTEC
947e0e2369
Fixed #1408
2020-11-17 22:00:41 +01:00
JaniruTEC
6eca8f2e0c
Added support for quote escaped values for mount arguments
2020-11-17 21:56:43 +01:00
JaniruTEC
afb9d4f010
Fixed exception on startup if mount folder doesn't exist
...
IrregularUnmountCleaner should not be called if there is no folder that could contain mountpoints.
2020-11-06 18:44:47 +01:00
JaniruTEC
db3bf9723e
Merge branch 'feature/additional-error-messages' into develop
2020-11-06 17:34:23 +01:00
JaniruTEC
3a5937b35f
Added runLater to implementation of ErrorComponent#showErrorScene()
2020-11-06 17:09:44 +01:00
JaniruTEC
313f8b36d2
Replaced dependency with call to getter
2020-11-05 17:11:35 +01:00
JaniruTEC
343794c1fe
Redo "Added UI error messages"
...
This reverts commit d331c302
2020-11-05 17:04:31 +01:00
JaniruTEC
551d9d1af1
Added default Errorhandler to all Tasks and Services
2020-10-28 16:21:14 +01:00
JaniruTEC
0acc8ddb0a
Fixed UnlockWorkflow
...
Partly reverted 253abd4930
2020-10-28 15:50:20 +01:00
JaniruTEC
f0e1bcb899
Moved call to #setOnFailed() to UpdateStatsService implementation
2020-10-28 15:40:59 +01:00
JaniruTEC
d331c30224
Revert "Added UI error messages"
...
This reverts commit eb8f5f523d .
2020-10-28 15:21:59 +01:00
JaniruTEC
d0d39a1c72
Merge branch 'develop' into fix/missing-exceptions
2020-10-27 17:04:32 +01:00
JaniruTEC
8904df91b4
Reverted accidental changes to Project_Default.xml [Skip CI]
2020-10-27 16:18:55 +01:00
JaniruTEC
786365c095
Added ability to skip CI
...
Added check for "Skip CI", added comment
Added filter for skipping CI
2020-10-27 16:12:35 +01:00
JaniruTEC
eb8f5f523d
Added UI error messages
...
Added UI error message to GeneralPreferencesController for ToggleAutoStartTask
Added UI error message to RecoveryKeyCreationController
2020-10-26 21:19:24 +01:00
JaniruTEC
9c22adc97d
Added/Fixed error logging
...
Added error logging to VaultStats and GeneralPreferencesController
Fixed possible missing error logging in VaultService
2020-10-26 21:17:22 +01:00
JaniruTEC
253abd4930
Refactored UnlockWorkflow
...
Replaced protected state methods (scheduled, etc.) with lambdas in the constructor
Replaced try-multi-catch with if-instanceof in onFailed-lambda
2020-10-22 18:58:46 +02:00
JaniruTEC
022ba81f2f
Reformatted classes ErrorComponent and Tasks
2020-10-22 18:33:20 +02:00
JaniruTEC
0a32de2c92
Addded dev run configs, removed fuse-setting from win prod config
2020-10-16 22:38:39 +02:00
JaniruTEC
0206fc0b8f
Bumped required version of fuse-nio-adapter to 1.2.5
2020-10-14 15:26:28 +02:00
JaniruTEC
06b3343a6d
Partly Revert "Finished feature: Fuse on Win"
...
Revert changes to TemporaryMountPointChooser introduced by 598bec3050
2020-10-13 18:30:00 +02:00
JaniruTEC
598bec3050
Finished feature: Fuse on Win
...
Bumped required version of fuse-nio-adapter to 1.2.4
Added comments
Changed log messages to be more descriptive
2020-10-12 21:34:56 +02:00
JaniruTEC
21f4fab9ed
Fixed bug: Strange error message if no MPC was applicable
2020-10-09 18:40:50 +02:00
JaniruTEC
58e2ec4742
Changed contract of priorities in MPC, added null-check
...
See: ab538cd215 (original commit)
See: 6b6867b826 (reverting commit)
2020-10-08 19:14:03 +02:00
JaniruTEC
6b6867b826
Reverted ab538cd215
2020-10-08 18:51:03 +02:00
JaniruTEC
7781572b6d
Replaced call to Validate with call to Preconditions
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r500760560
2020-10-07 23:27:08 +02:00
JaniruTEC
b5efe39eb8
Refactored Vault, MPCs, Unlock to integrate better with latest changes
...
Removed delegate to Volume#getMountPointRequirement() from Vault
Added getter for the Vault's Volume (#getVolume())
Changed CustomMountPointChooser to use VaultSettings instead of Vault for the constructor/field declaration
Updated CustomMountPointChooser#isApplicable() to be disabled when using FUSE on Windows (without useExperimentalFuse)
Updated CustomMountPointChooser to call Volume#getMountPointRequirement() directly
Replaced OS-Check in TemporaryMountPointChooser with MPR-Check
Replaced call to Vault#getMountPointRequirement() with call to Vault#getVolume() (and Volume#getMountPointRequirement()) in UnlockInvalidMountPointController and UnlockWorkflow
Cleaned up UnlockWorkflow
2020-10-07 23:19:24 +02:00
JaniruTEC
9329311491
Merge branch 'feature/volume-type-getter' into feature/fuse-on-win
2020-10-07 16:59:54 +02:00
JaniruTEC
22438d1eba
Added api for getting the implemented VolumeImpl (type) of a Volume
2020-10-07 16:46:58 +02:00
JaniruTEC
d295084312
Changed contracts in MPC interface
...
Added Volume parameter to the method signature of all MPC methods and updated implementations to use the change.
Changed contract of the MPC interface: Validation of the MPC (call to #isApplicable()) moved from the Module to the Volume.
Updated docs to reflect those changes. Fixed typos.
Updated method/qualifier names.
Updated implementation of #provideOrdered(Valid)MountPointChoosers() to reflect this change and to build the set differently.
Updated #determineMountPoint() to work with the new set.
2020-10-06 19:52:59 +02:00
JaniruTEC
ab538cd215
Fixed bug: Dropped MPCs if priorities were equal
...
Fixed bug that caused MPCs with equal priorities to be dropped (even if they weren't equal).
Added additional criteria (hashCode) for cases were priorities are equal.
See the docs of ImmutableSortedSet for further information.
2020-10-06 19:40:03 +02:00
JaniruTEC
354de225ed
Reverted changes to WebDavVolume#getMountPoint()
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472888268
2020-09-30 14:09:01 +02:00
JaniruTEC
9657a13912
Updated MPCModule to return a SortedSet and switched collector
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r474452898
2020-09-28 23:34:47 +02:00
JaniruTEC
ec64055d93
Renamed property "position" (defined by MPC) to "priority"
2020-08-21 22:41:15 +02:00
JaniruTEC
6f542ac8b8
Replaced "assert" with IllegalStateException
2020-08-21 21:57:12 +02:00
JaniruTEC
8483f71f57
Refactored CustomMountPointChooser
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472832435
2020-08-21 00:55:33 +02:00
JaniruTEC
5dac594cc9
Removed Phasesystem, specified docs, removed default #isApplicable()
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472835069 https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472839837 https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472820689 https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472872901
2020-08-21 00:00:13 +02:00
JaniruTEC
4cd43a2b1c
Merge branch 'develop' into feature/fuse-on-win
2020-08-19 15:53:26 +02:00
JaniruTEC
1ef359e68b
Added messages to rethrown IOExceptions
2020-08-19 15:47:09 +02:00
JaniruTEC
58ce1e45b8
Updated Codestyle to not use any arrangements
2020-08-19 15:34:08 +02:00
JaniruTEC
3ecc0cf906
Cleaned up MountPointRequirement
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472827299
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472826920
2020-08-19 14:45:10 +02:00
JaniruTEC
ea6925f905
Replaced #wrapAsIMPE() with explicit call to IMPExc
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472872373 https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472859488 https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472827776
2020-08-19 11:44:18 +02:00
JaniruTEC
f45b78d8c0
Removed accidental debugcode, updated lookup for env-var
...
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472848604
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r472851003
2020-08-19 11:44:01 +02:00
JaniruTEC
75ca8a91f8
Merge remote-tracking branch 'upstream/develop' into feature/fuse-on-win
2020-08-19 11:42:55 +02:00
JaniruTEC
16462d05c8
Refactored changes, cleaned up
...
Changed visibility of methods
Removed Logger from AbstractVolume
Moved mountPoint and #getMountPoint()
Renamed fuseMnt to mount in FuseVol (as in DokanyVol)
Removed unnecessary mountPoint-field from WebDavVolume
2020-08-18 21:27:13 +02:00
JaniruTEC
cbef54f05c
Added Logger, moved cleanup, moved choosing
2020-08-18 21:27:03 +02:00
JaniruTEC
f601ff4ce3
Moved #isSupported() in the file, moved #determineMountPoint()
2020-08-18 21:26:52 +02:00
JaniruTEC
84fbf7392b
Updated usage of FuseNotSupportedException
2020-08-18 16:57:56 +02:00
JaniruTEC
bbf9379f56
Changed DokanyVolumes and FuseVolumes to use mountnames
...
Changed DokanyVolumes and FuseVolumes to use mountnames for automatic, folder-based mounting instead of ids.
2020-08-18 16:57:55 +02:00
JaniruTEC
6aa14fcfb1
Updated Errorhandling of UnlockWorkflow
2020-08-18 16:57:55 +02:00
JaniruTEC
4110057fa1
Refactored multiple classes
...
Refactored UnlockWorkflow, CustomMountPointChooser, DokanyVolume and UnlockInvalidMountPointController
Changed UnlockWorkflow#handleGenericError() to accept Throwables
Added check for parent to CustomMountPointChooser (when using FUSE on Win)
Removed legacy constant from DokanyVolume
Added asserts to UnlockInvalidMountPointController and UnlockWorkflow
2020-08-16 18:40:11 +02:00
JaniruTEC
430da2b78d
Implemented MPC-System in FuseVolume and DokanyVolume, did refactoring
...
Implemented MPC-System in FuseVolume and DokanyVolume
Removed methods from FuseVol and DokanyVol
Renamed methods
Added chooser logic instead
Added imports for VolumeException to multiple classes
Added support for throwing and handling of InvalidMountPointException from Volume up to UnlockWorkflow (changed method signatures, added try-catchs, etc.)
2020-08-12 23:42:38 +02:00
JaniruTEC
51047dcbce
Added additional debug messages
2020-08-12 23:42:38 +02:00
JaniruTEC
708bcaa630
Updated CustomMountPointChooser to use MPR instead of OS-Checks
...
Updated CustomMountPointChooser to use MountPointRequirements instead of OS-Checks.
This led to the discovery of the bug that was fixed in 724b20c826 .
2020-08-12 23:42:37 +02:00
JaniruTEC
724b20c826
Fixed possible racecondition at Vault initialization
...
Fixed possible racecondition at Vault initialization: VaulSettings were read before the Vault was fully initialized resulting in breakage of the code if the excact order was to be changed.
2020-08-12 21:43:24 +02:00
JaniruTEC
b7f2fb0bdf
Added cleanup to TemporaryMountPointChooser
2020-08-11 23:35:43 +02:00
JaniruTEC
222ffd8c53
Implemented MountPointChooserModule
2020-08-11 23:35:42 +02:00
JaniruTEC
00e0a0f79a
Fixed doc for MountPointChooser
2020-08-11 23:35:42 +02:00
JaniruTEC
d6bbc4383b
Added implementations for MountPointChooser
...
Added AvailableDriveLetterChooser for automatic DriveLetter-choice
Added CustomDriveLetterChooser for a chosen DriveLetter
Added CustomMountPointChooser for a chosen directory
Added TemporaryMountPointChooser for automatic directory-choice
2020-08-11 23:03:12 +02:00
JaniruTEC
b51a2602a9
Documented MountPointChooser
2020-08-11 23:03:12 +02:00
JaniruTEC
c3fbddc671
Refactored PerVault, Vault and VaultSettings
...
Made @`PerVault public
Added import for VaultException to Vault
Added convenience method to VaultSettings
2020-08-11 22:26:15 +02:00
JaniruTEC
ce262b691a
Added base classes for MountPointChoosers and added module to component
2020-08-11 22:26:15 +02:00
JaniruTEC
597899d2bf
Fixed random set order and updated #getAvailableDriveLetter()
...
Fixed bug introduced by 32a810fe1d :
The Set of existing DriveLetters was in random order because Collectors#toUnmodifiableSet is an unordered collector.
Changed #getAvailableDriveLetter() to use Stream#findFirst() instead of #findAny()
2020-08-11 02:24:44 +02:00
JaniruTEC
4f2120b729
Added support for folderbased backup-mountpoint to DokanyVol and FuseVol
2020-08-03 22:20:20 +02:00
JaniruTEC
51f7d74e4a
Changed cryptomator.mountPointsDir-property in Windows Configs
...
Changed cryptomator.mountPointsDir-property in Windows Configs from "~/Mount" to "~/Cryptomator
2020-08-03 21:22:22 +02:00
JaniruTEC
32a810fe1d
Changed FuseVolume to choose a DriveLetter instead of a folder
...
Changed FuseVolume to choose a DriveLetter instead of a folder if the the mountpoint is chosen by the app.
Reworked priorities when choosing
Changed DokanyVolume to use the new methods supplied by WindowsDriveLetters
2020-07-29 22:15:12 +02:00
JaniruTEC
570482521a
Delegated choice of DriveLetter to WDL and made internal Set immutable
...
Delegated choice of DriveLetter to WindowsDriveLetters
Made internal Set ("C_TO_Z") immutable, that is returned by getAvailableDriveLetters()
Changed direct reference to C_TO_Z to use getAvailableDriveLetters() instead
2020-07-29 22:14:51 +02:00
JaniruTEC
1ac6d086bd
Disabled some experimental FUSE Features on Windows
...
Disabled some experimental FUSE Features on Windows unless they are explicitly enabled by using the flag '-Dfuse.experimental="true"'
They are enabled in the default IntelliJ-Config (disabled on Build)
2020-07-28 19:15:56 +02:00
JaniruTEC
8374599183
Modified creation of temporary mountpoint, fixed bugs, added comments
...
Changed FuseVolume#prepareTemporaryMountPoint to handle FUSE on Windows correctly (WinFSP requires the folder to NOT exist...)
See: https://github.com/billziss-gh/winfsp/issues/320
Added comments
Fixed bug: Message showing a malformed path
2020-07-26 23:03:36 +02:00
JaniruTEC
a1b375316c
Specified the messages of failed UnlockWorkflows
...
Specified the messages of failed UnlockWorkflows by adding the ability to distinguish between the different MountPointRequirements
Translation for all languages but German and Englisch required
2020-07-20 22:06:15 +02:00
JaniruTEC
dae2814b0f
Added MountPointRequirement-Enum
...
Added MountPointRequirement-Enum and added method getMountPointRequirement() to Volume (and all implementing classes) to query the requirment for the specific VolumeProvider.
2020-07-20 22:01:10 +02:00
JaniruTEC
341a98848d
Modified check of provided mountpoint
...
Changed FuseVolume#checkProvidedMountPoint to handle FUSE on Windows correctly (WinFSP requires the folder to NOT exist...)
2020-07-20 22:00:35 +02:00
JaniruTEC
902e66906a
Refactored method FuseVolume#prepareTemporaryMountPoint
...
Refactored method FuseVolume#prepareTemporaryMountPoint to be more readable (removed duplicated code)
2020-07-20 21:55:49 +02:00
JaniruTEC
c59d3cd03f
Removed check for OS from FuseVolume#isSupportedStatic
2020-07-20 21:23:35 +02:00
JaniruTEC
45f6caa7bd
Added basic support for FUSE-Mounting on Windows
2020-07-18 19:05:18 +02:00