aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-09-20Tidy up some importsSven-Hendrik Haase1-1/+2
2022-09-19Return 403 instead of 500 for upload errsJonas Diemer1-0/+6
2022-07-21Use `mime` for all content type declarationscyqsimon1-3/+3
2022-06-26Create directory (#781)Sheepy1-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
2022-02-05update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy1-4/+5
2021-12-28Bump actix-web to v4.0-beta.15jikstra1-11/+11
Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-10-13revert unnecessary changesAli MJ Al-Nasrawy1-10/+3
2021-08-30Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy1-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>
2021-03-28Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase1-23/+29
2021-03-20Switch from failure to thiserrorSven-Hendrik Haase1-28/+17
2021-02-19Fix lintsSven-Hendrik Haase1-4/+4
2020-07-21Use actix-web-httpauth for authentication middlewareequal-l21-7/+0
2020-07-21Update to actix 2 and futures 0.3equal-l21-1/+1
2019-05-10cargo fmtboastful-squirrel1-1/+4
2019-05-06Undo changes on InvalidHashMethod errorboastful-squirrel1-1/+1
2019-05-01Display 404 errorboastful-squirrel1-0/+4
2019-05-01Display HTTP authentication errorsboastful-squirrel1-0/+4
2019-04-27Improved some errorsboastful-squirrel1-1/+1
2019-04-27Combine ContextualError and ContextualErrorKind into onekhai96_1-54/+4
2019-04-26Merged query parameter structs + improved file upload errorsboastful-squirrel1-0/+4
2019-04-26Cargo fmtboastful-squirrel1-1/+4
2019-04-22Improved errorsboastful-squirrel1-0/+7
2019-04-21Properly log error + added render_error methodboastful-squirrel1-0/+6
2019-04-21Rework error system + avoid panics in main()boastful-squirrel1-72/+63
2019-04-04Fix typosVojtěch Pejša1-5/+5
2019-04-04Check if we have permissions to create files.Vojtěch Pejša1-0/+3
2019-04-04Better error handling for file upload.Vojtěch Pejša1-0/+17
2019-03-19Added documentation for errors and removed useless errorsboasting-squirrel1-4/+10
2019-03-13Switched to standard Rust logging systemboasting-squirrel1-12/+3
2019-03-13Build tar in buffer instead of in tempfileboasting-squirrel1-6/+0
2019-03-12Added some docs comments to errors.rsboasting-squirrel1-1/+6
2019-03-12Improved error messageboasting-squirrel1-2/+2
2019-03-12Better error messages for invalid pathboasting-squirrel1-10/+4
2019-03-12Added some error messages + reworked the print_error_chain methodboasting-squirrel1-6/+22
2019-03-11Started to add helpful messages for errors which could occur during archivingboasting-squirrel1-0/+90