]>
git.p6c8.net - jirafeau_mojo42.git/log
Patrick Canterino [Wed, 3 Apr 2024 12:21:33 +0000 (14:21 +0200)]
Define constants only if Sodium is available
Patrick Canterino [Mon, 1 Apr 2024 13:37:37 +0000 (15:37 +0200)]
Centralize decryption in `jirafeau_decrypt_file()`
Previously the decryption code in f.php was a copy of `jirafeau_decrypt_file()`.
Now, we let the funtion write to `php://output`.
`jirafeau_decrypt_file()` was previously broken because of me doing copy-paste...
Patrick Canterino [Mon, 1 Apr 2024 13:08:53 +0000 (15:08 +0200)]
Mention that source and destination file must not be the same and abort if they are the same
Patrick Canterino [Sat, 30 Mar 2024 13:02:22 +0000 (14:02 +0100)]
Define some Sodium constants from newer PHP versions if they are not available
Patrick Canterino [Sat, 30 Mar 2024 12:51:40 +0000 (13:51 +0100)]
Check return value of `rename()` after encryption
Patrick Canterino [Fri, 29 Mar 2024 12:12:31 +0000 (13:12 +0100)]
Show a warning in admin interface if Sodium is not available
Patrick Canterino [Thu, 28 Mar 2024 17:06:56 +0000 (18:06 +0100)]
Mention changed encryption algorithm and module in README
Patrick Canterino [Thu, 28 Mar 2024 16:50:24 +0000 (17:50 +0100)]
Re-emplementing encryption using Sodium
Changes:
- Encryption using Sodium
- Key is generated using random_bytes() (cryptographically secure)
- Encryption is done using a second file, which is renamed after encryption is
complete (by using the same file, we would encrypt already encrypted data
again)
- A file encrypted using Sodium is marked with "C2" in the link file, so we can
distinguish them from files encrypted using mcrypt
ToDo:
- Error checking
- Show a warning in the admin interface if Sodium is not available
Patrick Canterino [Thu, 27 Apr 2023 18:17:07 +0000 (20:17 +0200)]
Provide URL scheme in installer
Sandybunting [Tue, 27 Sep 2022 16:31:08 +0000 (16:31 +0000)]
Fixed and improved Docker image options.
Fixed the Docker image TITLE option and added a DARK_STYLE option.
Changes made to docker_config.php and the docker README
Jack Footner [Thu, 9 Mar 2023 05:27:35 +0000 (15:57 +1030)]
Require Root to make access denied prettier
Jack Footner [Thu, 9 Mar 2023 05:02:57 +0000 (15:32 +1030)]
Add new `admin_ip` configuration option
Dan Untenzu [Wed, 15 Mar 2023 13:40:43 +0000 (14:40 +0100)]
[FEATURE] Add meta viewport
Add the generic meta viewport tag,
to support responsive themes.
Refs #328
Andrea Zucchelli [Sat, 10 Jun 2023 22:08:03 +0000 (00:08 +0200)]
fix: docker lighttpd mod_usertrack not found
Andrea Zucchelli [Sat, 10 Jun 2023 21:57:28 +0000 (23:57 +0200)]
fix:remove deprecated strftime
Mathis Mensing [Wed, 5 Apr 2023 07:00:53 +0000 (09:00 +0200)]
fix: favicon location
Wim Livens [Sun, 2 Oct 2022 22:40:02 +0000 (00:40 +0200)]
keep and show basic download stats
gwunderlich [Fri, 2 Sep 2022 14:42:37 +0000 (16:42 +0200)]
fix wrong location for cfg access
gwunderlich [Fri, 2 Sep 2022 14:35:41 +0000 (16:35 +0200)]
fix input validation on required/regex setting
gwunderlich [Fri, 2 Sep 2022 12:57:39 +0000 (14:57 +0200)]
add function to check or generate file download passwords
gwunderlich [Mon, 14 Nov 2022 14:23:21 +0000 (15:23 +0100)]
Fix for mcrypt error, when encrypting files of size = X*1024 bytes
Jerome Jutteau [Fri, 26 Aug 2022 07:34:15 +0000 (09:34 +0200)]
[BUGFIX] Fix Linter
Update to php-cs-fixer which supports php >7.4 and >8.1. Removed unsupported versions
closes #320
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 24 Aug 2022 22:08:43 +0000 (00:08 +0200)]
[TASK] Fix php-cs-fixer errors
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 24 Aug 2022 20:09:15 +0000 (22:09 +0200)]
[TASK] rework user auth
This is a cleaner way to upload files and also prepare for #311.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 19 Jul 2022 11:17:43 +0000 (13:17 +0200)]
Jirafeau version 4.5.0
closes #306
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Fri, 15 Jul 2022 12:27:23 +0000 (14:27 +0200)]
Revert "[TASK] update CI to add PHP 8.1"
This reverts commit
8b1d336a1c2693b7f372df10860b96aa8d8a6a82 .
Jerome Jutteau [Fri, 15 Jul 2022 11:46:09 +0000 (13:46 +0200)]
[BUGFIX] Negative download speed display
fixes #309
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Asharas [Sun, 10 Jul 2022 20:03:11 +0000 (22:03 +0200)]
Fix JIRAFEAU_UPLOAD_PASSWD use.
Variable in help is described as JIRAFEAU_UPLOAD_PASSWD but both tested
and assigned variables have the wrong name.
Jerome Jutteau [Thu, 7 Jul 2022 13:20:03 +0000 (15:20 +0200)]
[BUGFIX] fix admin moving buttons on focus on dark-courgette
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 6 Jul 2022 18:34:35 +0000 (20:34 +0200)]
[TASK] Fix weblate warning regarding ku lang.
Original warning:
> Files for translated languages are using ambiguous language codes.
> These language codes indicate a macrolanguage, and it is usually better to use the code of the individual language instead.
> Language code: ku
> Suggested individual language codes: ckb, kmr, sdh
I will arbitrally choose ckb because I ignore differences about those individual languages and I'am sorry for this.
Feel free to edit, open an issue or edit those individual languages.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 6 Jul 2022 18:09:46 +0000 (20:09 +0200)]
[TASK] Update release process
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 6 Jul 2022 18:02:50 +0000 (20:02 +0200)]
[TASK] Update changelog
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 6 Jul 2022 17:46:15 +0000 (19:46 +0200)]
[TASK] import weblate the hard way
Webblate git repository was conflicting with gitlab's origin since two release.
This induced a lot of conflicts which are now resolved in this single commit.
Weblate will be hard-based on this commit.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 15:21:42 +0000 (17:21 +0200)]
[TASK] update CI to add PHP 8.1
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 6 Jul 2022 09:25:02 +0000 (11:25 +0200)]
[TASK] Update changelog
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 6 Jul 2022 09:14:16 +0000 (11:14 +0200)]
[BUGFIX] fix admin moving buttons on focus
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 5 Jul 2022 11:53:41 +0000 (13:53 +0200)]
[TASK] avoid copying install.php in docker image
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 5 Jul 2022 11:46:16 +0000 (13:46 +0200)]
[TASK] Disabling file deduplication by default.
File hashing is a pretty intensive task both for CPU and disk.
This feature seems not to be a must have and can produce unwanted side effects.
Very large file can take a lot of time to be hashed at the end of transfert, producing protential timeouts and user frustration.
Users can still enable file deduplication feature by setting `file_hash` to `md5`.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 5 Jul 2022 11:19:20 +0000 (13:19 +0200)]
[TASK] re-arrange Docker overlays to speedup image creation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 5 Jul 2022 07:59:08 +0000 (09:59 +0200)]
[TASK] simplify Dockerfile
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 5 Jul 2022 06:23:01 +0000 (08:23 +0200)]
[BUGFIX] retry transfering with lower size for any HTTP error code
When a timeout is too low compared to sent size, server will return a 500 error.
Jirafeau retry to send again but do not try to reduce chunk size.
This patch will make Jiarfeau split in half it's sent size each an error occurs.
ref #273
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Mon, 4 Jul 2022 22:33:43 +0000 (00:33 +0200)]
[BUGFIX] jirafeau_ini_to_bytes with no modifier
When setting a PHP ini value like `post_max_size`,
the value may not have a modifier (e.g. "M") and
for "0" input, the function return empty string.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Mon, 4 Jul 2022 21:38:25 +0000 (23:38 +0200)]
[BUGFIX] Manage PHP configuration with "unlimited" upload
Setting `post_max_size` and `upload_max_filesize` PHP options to "0" is unmanaged by Jirafeau.
It tries to send 0 bytes and Javascript have some zero division errors.
This commit will use $max_upload_chunk_size_bytes option when available.
If $max_upload_chunk_size_bytes is also set to zero, chunk size is set an arbitrary value of 10M.
Non html-5 users will not have size limitation shown.
fixes #272
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Mon, 4 Jul 2022 07:15:53 +0000 (09:15 +0200)]
[FEATURE] Support light/dark mode
A new option `dark_style` is introduced to set which dark theme administrators want to user.
If administrator don"t want to use a dark mode, they can just set `dark_syle` and `style` option to the same value.
closes #305
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 15:17:32 +0000 (17:17 +0200)]
[BUGFIX] fix proposed web root during installation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 14:38:09 +0000 (16:38 +0200)]
[BUGFIX] Print nice error when install.php is missing and we need it.
Also show header when printing this type of fatal error
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 14:27:15 +0000 (16:27 +0200)]
[BUGFIX] Fix user/group id in Dockerfile
fixes #304
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 14:14:43 +0000 (16:14 +0200)]
[TASK] update docker image with PHP 8.1
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 12:16:22 +0000 (14:16 +0200)]
[BUGFIX] fix and simplify delete confirmation form
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 11:38:23 +0000 (13:38 +0200)]
[BUGFIX] Limit upload chunk size to a reasonable value
Not really a bug but avoid users to fall in php configuration traps.
ref #303
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jul 2022 08:42:33 +0000 (10:42 +0200)]
Add more details about upload error
ref #303
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 2 Jul 2022 15:00:52 +0000 (17:00 +0200)]
Update CHANGELOG regarding new options
ref #303
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 2 Jul 2022 14:35:50 +0000 (16:35 +0200)]
Detail more errors
A user which just have "Error" is hard to help.
This should help understanding what is happening.
ref #303
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 17 May 2022 16:32:13 +0000 (18:32 +0200)]
[TASK] Add example of admin password generation
ref #297
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 30 Apr 2022 19:15:36 +0000 (21:15 +0200)]
[FEATURE] IRC channel is now open on libera.chat
closes #294
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
bendia [Tue, 21 Dec 2021 21:21:19 +0000 (22:21 +0100)]
[BUGFIX] use i18n string_id to avoid "FIXME" errors in install.php
This fix has been backported from #101 merge request in next-release
Thanks @bendia
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Hunter Fuller [Thu, 17 Mar 2022 04:17:42 +0000 (23:17 -0500)]
Add support for the X-Sendfile header/module to offload downloads.
With the appropriate config option enabled, Jirafeau will send the
X-Sendfile header instead of sending the file itself. As a result,
Apache/lighttpd will send the file without the intervention of Jirafeau,
and download resumes/seeking will also be enabled for this download.
If the user requested an encrypted file then this will not work, but it
should work in all other cases.
Jerome Jutteau [Sat, 30 Apr 2022 18:53:54 +0000 (20:53 +0200)]
Jirafeau version 4.4.0
closes #292
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Oskar Fagerfjäll [Tue, 19 Jan 2021 05:54:35 +0000 (14:54 +0900)]
fix spelling mistakes
sam lt [Fri, 4 Jun 2021 12:37:30 +0000 (12:37 +0000)]
fix 2 minor typos
Edwin Bos [Wed, 23 Jun 2021 13:42:47 +0000 (15:42 +0200)]
Implement expiry after a fortnight (2 weeks).
MrWouterNL [Mon, 21 Mar 2022 19:46:14 +0000 (20:46 +0100)]
[BUGFIX] Disallow file preview for image/svg+xml files
Jerome Jutteau [Tue, 18 May 2021 07:15:34 +0000 (09:15 +0200)]
[BUGFIX] fix file previewing
- avoid previewing text/*
- javascript side more clear
closes #264
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Tue, 18 May 2021 06:59:15 +0000 (08:59 +0200)]
[BUGFIX] setup autocomplete field for passwords
closes #265
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Nicky Galliano [Fri, 5 Feb 2021 10:11:06 +0000 (10:11 +0000)]
Update functions.php.
Following the update to php 8, I got the following debug error when trying to access my instance :
"Array and string offset access syntax with curly braces is no longer supported in [...]/jirafeau/lib/functions.php on line 31"
I just changed the deprecated curly braces into brackets and I was good to go.
Sven Dickert [Wed, 13 Jan 2021 10:31:34 +0000 (11:31 +0100)]
fix #178 "Delete via API does not work"
Jerome Jutteau [Sun, 3 Jan 2021 20:55:11 +0000 (21:55 +0100)]
[TASK] add more information in bug report
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 3 Jan 2021 00:40:32 +0000 (01:40 +0100)]
[TASK] add more details in docker documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 2 Jan 2021 23:18:20 +0000 (00:18 +0100)]
[FEATURE] more option docker options
closes #247
also:
- warn user about web_root configuration in docker
- no need to rewrite default options in docker
- option name is the same as Jirafeau but in CAPSLOCK
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Fri, 1 Jan 2021 18:29:18 +0000 (19:29 +0100)]
[FEATURE] add basic docker options
- web_root
- var_root
- admin_password
ref #247
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Fri, 1 Jan 2021 17:37:06 +0000 (18:37 +0100)]
[TASK] rework docker documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Fri, 1 Jan 2021 01:36:06 +0000 (02:36 +0100)]
[TASK] remove useless step
Now that a lot of checks are done throw CI, this step should not be needed anymore.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 5 Dec 2020 13:13:49 +0000 (14:13 +0100)]
[FEATURE] provide details for bug opening
refs #235
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 30 Dec 2020 10:11:41 +0000 (11:11 +0100)]
Jirafeau version 4.3.0
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 30 Dec 2020 10:11:26 +0000 (11:11 +0100)]
[TASK] update changelog
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 30 Dec 2020 08:52:09 +0000 (09:52 +0100)]
[FEATURE] allow admin to not log users IP in Jirafeau
New option 'store_uploader_ip' set to true by default.
closes #248
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 22:05:06 +0000 (23:05 +0100)]
[TASK] clean docker documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 21:54:29 +0000 (22:54 +0100)]
[TASK] add line returns for admin cli
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 21:34:50 +0000 (22:34 +0100)]
[TASK] add docker options documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 21:28:20 +0000 (22:28 +0100)]
[TASK] add release notes
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 20:08:34 +0000 (21:08 +0100)]
[TASK] add structure for docker configuration
For now only one option is available: FILE_HASH
You can run Jirafeau's docker with -e FILE_HASH="random" to disable file hashing.
ref #146
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 19:39:47 +0000 (20:39 +0100)]
[TASK] move docker CMD command to separate file
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 20:57:21 +0000 (21:57 +0100)]
[BUGFIX] avoid running admin cli if installation not finished
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 19:34:13 +0000 (20:34 +0100)]
[TASK] clean install.php functions
Move functions to lib/functions.php
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 19:30:20 +0000 (20:30 +0100)]
[TASK] clean dead code from install.php
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sun, 13 Dec 2020 18:59:29 +0000 (19:59 +0100)]
[BUGFIX] Add specific handle for XHR error
Avoid aborting on this type of error, better wait for state change.
Still log "error" and "abort" events.
ref #212
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Dan Untenzu [Thu, 3 Dec 2020 13:55:53 +0000 (14:55 +0100)]
[FEATURE] CI: Add PSR-12 check
The project follows the PSR-2 coding style.
This should be tested automatically in all commits.
Jerome Jutteau [Sat, 5 Dec 2020 12:43:22 +0000 (13:43 +0100)]
[TASK] run php-cs-fixer
php-cs-fixer fix --rules=@PSR2 .
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Dan Untenzu [Thu, 3 Dec 2020 14:26:59 +0000 (15:26 +0100)]
[FEATURE] Add composer
Add composer to allow project installation via packagist.
Refs #91
Jerome Jutteau [Sat, 5 Dec 2020 11:52:10 +0000 (12:52 +0100)]
[BUGFIX] lower POST size when ̀PHP's upload_max_filesize is too low.
When post_max_size == upload_max_filesize, Jifeau sends too large request (files + headers) and serveur still returns 200.
Jirafeau does not see any files and return Error 23.
Javascript client now detect this error and retry with a lower file size to make room for headers.
closes #240
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 5 Dec 2020 11:51:52 +0000 (12:51 +0100)]
[TASK] set explicit PHP settings for docker
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Sat, 5 Dec 2020 10:53:40 +0000 (11:53 +0100)]
[TASK] centralize error reporting config
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Dan Untenzu [Thu, 3 Dec 2020 13:40:21 +0000 (14:40 +0100)]
[FEATURE] CI: Raise default PHP version
Use the same PHP versions for CI tests as in
the docker file.
Raise default version to a supported PHP branch.
Dan Untenzu [Thu, 3 Dec 2020 13:37:53 +0000 (14:37 +0100)]
[BUGFIX] CI: Fix YAML indentations
Dan Untenzu [Thu, 3 Dec 2020 13:32:11 +0000 (14:32 +0100)]
[FEATURE] Replace PHP linter package
Replace abandoned PHP Linter package with new source.
Dan Untenzu [Thu, 3 Dec 2020 13:19:25 +0000 (14:19 +0100)]
[FEATURE] Add blog post to Readme
Dan Untenzu [Thu, 3 Dec 2020 13:08:27 +0000 (14:08 +0100)]
[BUGFIX] Replace broken badge source URL
GitLab does nit use the build.svg for a while now.
Replace these with the Open Source Service shields.io.
Jerome Jutteau [Wed, 2 Dec 2020 20:33:44 +0000 (21:33 +0100)]
[TASK] better to test docker image before releasing
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Jerome Jutteau [Wed, 2 Dec 2020 20:30:56 +0000 (21:30 +0100)]
[BUGFIX] fix jirafeau docker image
- exposed port
- fix lighttpd user
- setup www-data group
Jerome Jutteau [Wed, 2 Dec 2020 19:30:37 +0000 (20:30 +0100)]
Jirafeau version 4.2.0
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
patrick-canterino.de