Git Product home page Git Product logo

flash's People

Contributors

thezoq2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flash's Issues

Tell the user if file saving failed

This should be done by reading the save_result_rx variable from FileSaveRequestResult::NewdatabaseEntry whenever it is stored.

A good system for reporting these errors to the user must be established

Investigate moving from error_chain to failure

Failure is the recommended error handling lib and seems to come with some nice features that are not present in error_chain. Though before switching over it might be better to test it in another project.

Things to test

  • Best error structure
  • How to add context
  • How do backtraces work

Tests require internet connection

This is because it tests http status codes. Perhaps the online test could be replaced with a diy script. Or perhaps this does not need to be tested?

Make file timestamp non-optional

All functions that add new files or update them always set a timestamp so having it nullable in the database just adds complexity

Prevent random file access

As it stands, any file on the server file system can be accessed by making a request to file/path. Some sort of whitelist would probably be a good idea.

This also applies to file listings from directories.

Use long urls instead of query parameters

Replace

mount.mount("/list", file_request_handlers::file_list_request_handler);

with

mount.mount("/list", ..)
mount.mount("/list/{id}", ..)
mount.mount("/list/{id}/file/{id}", ..)

This will make it easier to see valid parameters for requests from the code since they would be visible in the handler declaration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.