aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add asynchronous directory size countingSven-Hendrik Haase2025-03-071-1/+2
| | | | | This is enabled by default and without an option to toggle it off as it's asynchronous and shouldn't block the server thread.
* Modernize actix-web middleware usageSven-Hendrik Haase2025-03-071-36/+28
|
* Upgrade to Rust 2024 editionSven-Hendrik Haase2025-03-071-1/+1
|
* feat: address comments; add in new argument (`temp-directory`); add comments ↵Alec Di Vito2025-02-221-1/+1
| | | | to upload code; add tests
* feat: implement temporary file uploads and tweak mobile designAlec Di Vito2025-02-171-0/+5
|
* Merge branch 'master' into upload-progress-barSven-Hendrik Haase2025-02-071-0/+3
|\
| * add read-only webdav supportLukas Stabe2025-02-051-0/+3
| |
* | feat: Added HTML and Javascript progress bar when uploading filesAlec Di Vito2024-06-061-0/+1
|/
* Rename `StartError` -> `StartupError`cyqsimon2024-01-301-1/+1
|
* Refactor errorscyqsimon2024-01-291-36/+33
| | | | | - Split `ContexualError` into `StartError` & `RuntimeError` - Made sure every `RuntimeError` variant has an accurate status code
* Update actix-multipart to 0.6.1Sven-Hendrik Haase2024-01-031-1/+1
|
* Fix error page wrappingBao Trinh2023-07-261-2/+10
| | | | | | Error page was incorrectly comparing the full content-type header of error responses against `text/plain`, so no error pages were being wrapped by `map_error_page`.
* Tidy up some importsSven-Hendrik Haase2022-09-201-1/+2
|
* Return 403 instead of 500 for upload errsJonas Diemer2022-09-191-0/+6
|
* Use `mime` for all content type declarationscyqsimon2022-07-211-3/+3
|
* Create directory (#781)Sheepy2022-06-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability to make directory Frontend for making directories Fix potential security vulnerability (CWE-23) Add tests Update README.md Disallow using parent directories altogether Fix formatting Fix clippy warnings Address review comments Update README.md Change `making` to `creation` Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> Have make directory flag require file upload flag Address review comments * Disallow uploading files and making directories through symlinks when disabled * Add test * Clippy formatting changes * Add test doc comment
* update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy2022-02-051-4/+5
|
* Bump actix-web to v4.0-beta.15jikstra2021-12-281-11/+11
| | | | Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* revert unnecessary changesAli MJ Al-Nasrawy2021-10-131-10/+3
|
* Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy2021-08-301-3/+94
| | | | | | | | | | | | | | | | | | | | | ... page rendering Too many arguments are moved around and many of them are already stored in MiniserveConfig. Many of these are used to render error pages. To fix this issue, it was necessary to rework error page rendering: 1. Implement `ResponseError` for `ContextualError` so that it can be returned from service handlers as is and will then be automatically logged to the console and converted into an error response. 2. At service handler level, all error responses are now rendered as plain text. 3. 'error_page_middleware' is now responsible for the rendering of the final error page from plain text reponses. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase2021-03-281-23/+29
|
* Switch from failure to thiserrorSven-Hendrik Haase2021-03-201-28/+17
|
* Fix lintsSven-Hendrik Haase2021-02-191-4/+4
|
* Use actix-web-httpauth for authentication middlewareequal-l22020-07-211-7/+0
|
* Update to actix 2 and futures 0.3equal-l22020-07-211-1/+1
|
* cargo fmtboastful-squirrel2019-05-101-1/+4
|
* Undo changes on InvalidHashMethod errorboastful-squirrel2019-05-061-1/+1
|
* Display 404 errorboastful-squirrel2019-05-011-0/+4
|
* Display HTTP authentication errorsboastful-squirrel2019-05-011-0/+4
|
* Merge branch 'master' into themed-errorsboastful-squirrel2019-04-271-58/+5
|\
| * Combine ContextualError and ContextualErrorKind into onekhai96_2019-04-271-54/+4
| |
* | Improved some errorsboastful-squirrel2019-04-271-1/+1
| |
* | Merged query parameter structs + improved file upload errorsboastful-squirrel2019-04-261-0/+4
| |
* | Cargo fmtboastful-squirrel2019-04-261-1/+4
|/
* Merge remote-tracking branch 'mainrepo/master' into pullrequest.hashed-passwordkhai96_2019-04-261-70/+84
|\
| * Improved errorsboastful-squirrel2019-04-221-0/+7
| |
| * Properly log error + added render_error methodboastful-squirrel2019-04-211-0/+6
| |
| * Rework error system + avoid panics in main()boastful-squirrel2019-04-211-72/+63
|/
* Fix typosVojtěch Pejša2019-04-041-5/+5
|
* Check if we have permissions to create files.Vojtěch Pejša2019-04-041-0/+3
|
* Better error handling for file upload.Vojtěch Pejša2019-04-041-0/+17
|
* Added documentation for errors and removed useless errorsboasting-squirrel2019-03-191-4/+10
|
* Switched to standard Rust logging systemboasting-squirrel2019-03-131-12/+3
|
* Build tar in buffer instead of in tempfileboasting-squirrel2019-03-131-6/+0
|
* Added some docs comments to errors.rsboasting-squirrel2019-03-121-1/+6
|
* Improved error messageboasting-squirrel2019-03-121-2/+2
|
* Better error messages for invalid pathboasting-squirrel2019-03-121-10/+4
|
* Added some error messages + reworked the print_error_chain methodboasting-squirrel2019-03-121-6/+22
|
* Started to add helpful messages for errors which could occur during archivingboasting-squirrel2019-03-111-0/+90