5810 Commits

Author SHA1 Message Date
Vishal Nehra 3585639703 Bump version number v3.8 2022-09-16 03:21:40 +05:30
Vishal Nehra 3797f96e37 Merge pull request #3470 from TeamAmaze/transifex-translations
Transifex translations
2022-09-16 03:05:16 +05:30
Vishal Nehra bb07c4c6e0 Merge pull request #3454 from TeamAmaze/bugfix/3453
3453 Fix folder navigation for syncthing
2022-09-16 03:04:28 +05:30
Vishal Nehra 8f8f860dce Merge pull request #3469 from TeamAmaze/feature/listing-cache
Fix use vector icon for telegram / add instagram icon
2022-09-16 02:45:09 +05:30
Vishal Nehra 5c3cddf77c Fix use vector icon for telegram / add instagram icon 2022-09-16 02:44:06 +05:30
Vishal Nehra fb454f3f96 Merge pull request #3467 from TeamAmaze/feature/listing-cache
Allow to force reload when list is cached
2022-09-16 02:43:51 +05:30
Vishal Nehra fe7633a5bb Merge pull request #3451 from TeamAmaze/feature/3450
3450 Allow to delete drag and drop files
2022-09-15 00:00:24 +05:30
Vishal Nehra 2ceb0a443b Fix spotless error 2022-09-14 23:59:24 +05:30
Vishal Nehra 9053b2b265 Merge release branch 2022-09-14 23:55:01 +05:30
Vishal Nehra c3cfbe4b14 Merge pull request #3405 from TranceLove/feature/1570
FTP client support
2022-09-14 23:41:11 +05:30
Vishal Nehra 524ae360ce Fix spotless 2022-09-14 23:33:32 +05:30
Vishal Nehra f77dc3af03 Allow to force reload when list is cached 2022-09-14 22:49:33 +05:30
Raymond Lai 76ecf9f7f7 Fix cut/copy and paste within FTP server
Use an InputStream backed by the temporary file when called for copying.
2022-09-12 14:01:33 +08:00
Raymond Lai cd856d5928 Fix copy folder problem within FTP server
Due to single thread nature of FTPClient, HybridFile.forEachChildrenFile cannot perform actions within for loop

Also fix back button on FTP server problem that causing crashes
2022-09-11 11:37:19 +08:00
Raymond Lai 7d72aa4596 Fix back button not responding on FTP connection
Also fix Slf4jPrintCommandListener leaking credentials
2022-09-07 00:06:42 +08:00
Raymond Lai e7f8c5edd1 Fix back button on FTP connection failures + little code cleanup
- Remove FIXME marks in FTPClientImpl
- ConnectionInfo.queryString should be null if not specified
- OTGUtil code syntax cleanup per recommendation
2022-09-04 00:33:37 +08:00
TranceLove bf4f5f2d90 Fix FTP file copy regressions on Android 9
- Remove redundant NOOP check that causing out-of-sequence calls to FTPClient; instead use FTPClient.isAvailable as status report
- Just close in/out channels, but no need to close the underlying BufferedInputStream/BufferedOutputStream, which caused copy to break on Android 9. With the ReadableByteChannel and WriteableByteChannel wrapping the streams, closing the channel at upper level should close the streams as well
- Also added a PrintCommandListener implementation that uses slf4j logger instead of just System.out
2022-09-03 01:39:06 +08:00
Raymond Lai 2bbda37683 Migrate password encryption base64 encoding options to Base64.URL_SAFE
Unfortunately, URL unsafe characters seem to be the culprit of regressions found on some Android versions.
2022-09-01 00:13:47 +08:00
Raymond Lai 9a1f2da16c Remove FTP file list caching
Force reload with FTP LIST command on swipe down.
2022-08-31 23:54:02 +08:00
Raymond Lai e7b1ecdf76 Fix test regressions
To fix test failures at mkdir() tests, that URL encoded filenames would fail.
2022-08-31 23:54:02 +08:00
Raymond Lai 00ef830298 Fix path existence on FTP server
Slow, but it just works (tm)
2022-08-31 23:54:01 +08:00
Raymond Lai 124be29b96 Fix upload file corrupt and cannot download multiple files on FTP server
- Correct FTP TYPE I command
- Fix OutputStream wrapper at HybridFile.getOutputStream() for FTP
- Fix InputStream wrapper at HybridFile.getInputStream() for FTP
2022-08-31 23:54:01 +08:00
Raymond Lai 3b53f91ea9 Implement workarounds for FTPClient thread unsafety
To allow SshClientUtils.launchSftp successfully run for FTP files, changed order of execution to work around FTPClient's thread unsafety
2022-08-31 23:54:01 +08:00
Raymond Lai 4a2c436f17 Implement workarounds for FTPClient thread unsafety
To allow SshClientUtils.launchSftp successfully run for FTP files, changed order of execution to work around FTPClient's thread unsafety
2022-08-31 23:54:01 +08:00
Raymond Lai ac41d5cf14 Changes per PR feedback (3)
Disable any attempt to load file thumbnail on FTP files, due to thread unsafe feature of FTPClient

Also added workarounds to make sure placeholder icons are placed properly for FTP files, regardless of file thumbnail setting
2022-08-31 23:54:01 +08:00
Raymond Lai 87d9648649 Changes per PR feedback (2)
- Change default port with change of protocol selection
- AbstractGetHostInfoTask throws all exceptions on connection failures
- Add support for anonymous FTP
2022-08-31 23:54:01 +08:00
Raymond Lai 6c421af10d Changes per PR feedback
- SftpConnectDialog, remove nag screen on connection failure blocking dialog close
- Fix the thread for Toast
2022-08-31 23:54:01 +08:00
Raymond Lai 793e1b5605 Changes per PR feedback
- fix SftpConnectDialog, protocol dropdown doesn't follow system theme
- fix GetSshHostFingerprintTask throws error message on first connect to server fetching server cert info
- add condition on checking FTPClient connection validity
2022-08-31 23:54:01 +08:00
Raymond Lai 2eb43b1165 Changes per feedback
- Use slf4j Logger in SevenZipExtractor
- Add explanation on OpenMode enum SFTP, FTP and NFS

Also added file rename test.
2022-08-31 23:54:01 +08:00
TranceLove b830d19292 FTP client support
Fixes #1570.

- Refactored SshConnectionPool to more generic NetCopyClientConnectionPool
- Change SshClientTemplate to NetCopyClientTemplate
- Implement FTP client support. Defaults to passive FTP and implicit SSL for FTPS
- Add optional thread safety to NetCopyClientConnectionPool on executing NetCopyClientTemplate, as Apache FTPClient is not thread safe. This shall bring deadlocks when connecting to FTP servers, but let's see...
- Migrated GetSshHostFingerprintTask and SshAuthenticationTaskCallable to callable and RxJava, in align with FTP client implementation
- Downgrade Apache FTP server to 1.1.1, as problems found with enabling TLS at Amaze FTP server after previous upgrade to 1.1.4

Tested on Pixel 2 emulator running Android 11, against Amaze FTP server running on Oneplus 2 running Lineage OS 18.1 (11).
2022-08-31 23:53:59 +08:00
Vishal Nehra b93fb465a5 Merge pull request #3452 from TeamAmaze/feature/3449
3449 Add dont ask again for deletion dialog
2022-08-29 14:59:55 +05:30
Vishal Nehra 3497ee9075 3453 Fix folder navigation for syncthing 2022-08-29 03:55:48 +05:30
Vishal Nehra fb291ced78 3449 Fix comments 2022-08-29 03:04:03 +05:30
Vishal Nehra 68af99564a Merge pull request #3448 from TeamAmaze/bugfix/2453
2453 Implement onError while deleting cloud connection
2022-08-29 01:54:47 +05:30
Vishal Nehra 63cd2e3fa4 Merge pull request #3447 from TeamAmaze/bugfix/3044
3044 NPE fix for saf intent result
2022-08-29 01:54:28 +05:30
Vishal Nehra 67cfa67362 Merge pull request #3446 from TeamAmaze/bugfix/2224
NPE fix for adapter element is back
2022-08-29 01:54:05 +05:30
Vishal Nehra b51f27c8b8 Add comments to public methods 2022-08-28 05:01:03 +05:30
Vishal Nehra 8d23ff05ce 3449 Add dont ask again for deletion dialog 2022-08-28 04:59:58 +05:30
Vishal Nehra 6327d46cc3 3450 Allow to delete drag and drop files 2022-08-28 03:48:36 +05:30
Vishal Nehra de156796f7 2453 Implement onError while deleting cloud connection 2022-08-28 02:34:53 +05:30
Vishal Nehra 94c430bdaf 3044 NPE fix for saf intent result 2022-08-28 02:07:05 +05:30
Vishal Nehra 25c9b91375 NPE fix for adapter element is back 2022-08-28 01:58:38 +05:30
Vishal Nehra e9a36bafbb Merge pull request #3244 from TeamAmaze/emmanuelmess/fix/search_crashes
Nullability and name fixes for RecyclerAdapter and search
2022-08-24 04:12:22 +05:30
Vishal Nehra eba14dc70d Merge release/3.8 2022-08-24 04:09:18 +05:30
Vishal Nehra d0219b8ebe Merge release/3.8 2022-08-24 04:04:24 +05:30
Vishal Nehra 3bc3a1f285 Merge pull request #3439 from beardian16/bugfix/3378
fix issue 3378
2022-08-22 15:29:09 +05:30
Ian c0d1a9af01 fix issue 3378 2022-08-19 11:28:54 -04:00
Vishal Nehra 575e3a9814 Merge pull request #3427 from TeamAmaze/feature/listing-cache
Implement cache for improved listing performance
2022-08-19 05:36:21 +05:30
Vishal Nehra b9efcf7f72 Merge pull request #3434 from TeamAmaze/bugfix/duplicated-jetified-logback-android-2
Fix logback multiple bindings problem during build (again)
2022-08-13 12:36:28 +05:30
Raymond Lai c20b1d3984 Fix logback multiple bindings problem during build (again)
Force use of logback-classic when running tests
2022-08-13 11:05:10 +08:00