Skip to content

Path.ExpiresIn can be NaN #25

@hibiyasleep

Description

@hibiyasleep

What did

Upload something over /overview upload form.

What happened

sqlite> Select count(*) From path Where expiresin = 'NaN';
1

And this happens, when opens path without sign-in state:

File "./app/route.py", line 416, in path_transmit
    (fileData.ExpiresIn is not None and time.time() > fileData.Uploaded + fileData.ExpiresIn)):
TypeError: unsupported operand type(s) for +: 'int' and 'unicode'

Which used

uwsgi/Python 2.7.12, SQLAlchemy 1.0.12 with sqlite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions