aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/sdl_net/handlers
AgeCommit message (Collapse)Author
2016-09-03JANITORIAL: Make GPL headers uniformEugene Sandulenko
2016-08-30CLOUD: Fix Webserver's usage of DefaultSaveFileManagerAlexander Tkachev
concatWithSavesPath() is only defined when curl is used, but was used in Webserver even when curl is unavailable.
2016-08-24CLOUD: Update handlersAlexander Tkachev
Now if there is no "rootpath" specified, it's not even listed by FilesPageHandler and ListAjaxHandler. And, of course, not available to use anywhere else.
2016-08-24CLOUD: Handle paths in marked placesAlexander Tkachev
Paths containing '../' are forbidden to use in Files Manager. There is also a special inner black list of paths which are not used and a check that specified path is under "savepath" or "rootpath" (from "cloud" domain).
2016-08-24CLOUD: Mark places where path handling is neededAlexander Tkachev
2016-08-24CLOUD: Add "minimal mode" in LocalWebserverAlexander Tkachev
StorageWizardDialog now runs LocalWebserver in "minimal mode" for security reasons. In this mode server uses only those handlers which state to support it. There are two handlers which support minimal mode: IndexPageHandler (which handles `code` requests needed by StorageWizardDialog) and ResourceHandler (which provides inner resources like `style.css` or `logo.png` from `wwwroot.zip` archive).
2016-08-24CLOUD: Use overriden handle() instead of ClientHandlerCallback in page handlersPeter Bozsó
Using a dedicated callback object for this was an unnecessary overhead.
2016-08-24CLOUD: Move determineMimeType to ResourceHandlerPeter Bozsó
2016-08-24CLOUD: JANITORIAL: Fix code formattingEugene Sandulenko
2016-08-24CLOUD: Fix IndexPageHandler warningAlexander Tkachev
2016-08-24CLOUD: Fix code formattingPeter Bozsó
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Do some refactoring/cleanup in NetworkingAlexander Tkachev
2016-08-24CLOUD: Make "/create" support AJAXAlexander Tkachev
Now creating directories doesn't refresh the "/filesAJAX" page.
2016-08-24CLOUD: Add "ajax" parameter for "/create" and "/upload"Alexander Tkachev
If it's set, these redirect to "/filesAJAX" instead of "/files".
2016-08-24CLOUD: Add messages in "/filesAJAX"Alexander Tkachev
2016-08-24CLOUD: Add "/filesAJAX" sketchAlexander Tkachev
It works already, but still requires some polishing.
2016-08-24CLOUD: Add ListAjaxHandlerAlexander Tkachev
"/list" now returns JSON with directory information. Would be used in AJAX-based Files Manager.
2016-08-24CLOUD: Add "Index of" label in server's "/files"Alexander Tkachev
2016-08-24CLOUD: Add icons in "/files" listAlexander Tkachev
2016-08-24CLOUD: Redirect to "/files" from "/"Alexander Tkachev
"/" is used to receive "?code", but when there is no such parameter passed, it's safe to redirect user to the "/files".
2016-08-24CLOUD: Add "directory" form for webserver "/upload"Alexander Tkachev
The attribute is Chrome-only.
2016-08-24CLOUD: Update "/files" hardcoded response templateAlexander Tkachev
2016-08-24CLOUD: Fix '\' encoding backAlexander Tkachev
2016-08-24CLOUD: Cleanup in HandlersAlexander Tkachev
Simplified some stuff here and there by using HandlerUtils static methods.
2016-08-24CLOUD: Cleanup in UploadFileHandlerAlexander Tkachev
2016-08-24CLOUD: Add UploadFileClientHandlerAlexander Tkachev
Now Client reads the first headers block, then LocalWebserver decides which Handler to use. In case of "/upload", UploadFileHandler is used. But now it only knows the "path" parameter. If that's valid, actual UploadFileClientHandler is created, which reads the contents of the request and, when finds there an "upload_file" field, starts saving it in the directory specified by "path". With that we don't need temp files approach from Reader class.
2016-08-24CLOUD: Fix quotes encodingAlexander Tkachev
2016-08-24CLOUD: Put "/upload" "path" parameter in the URLAlexander Tkachev
2016-08-24CLOUD: Add UploadFileHandlerAlexander Tkachev
2016-08-24CLOUD: Add query parameters URL encodingAlexander Tkachev
In local webserver's links. Fixed URL decoding to understand '+', by the way. Firefox sends these instead of spaces and "%2B" instead of '+'.
2016-08-24CLOUD: Add "/download" handlerAlexander Tkachev
Now one can download files from the device through browser!
2016-08-24CLOUD: Move "/create" to separate HandlerAlexander Tkachev
It does redirect to "/files" on success, so user doesn't even see the strange "/create" URL at all. This commit is for keeping these handlers small, not making one (FilesPageHandler in this case) do everything.
2016-08-24CLOUD: Make "/create" workAlexander Tkachev
One can now create directories through browser.
2016-08-24CLOUD: Refactor LocalWebserverAlexander Tkachev
Its handlers are now more compact. This commit moves Handler classes in handlers\ directory. ResourceHandler ignores "hidden" files in the archive, and these are used as markup templates in IndexPageHandler and FilesPageHandler.