Skip to content

Added safegaurd against invalid project id and undefined file path #1265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 261 commits into from
Mar 30, 2020

Conversation

thegitone23
Copy link
Contributor

@thegitone23 thegitone23 commented Feb 17, 2020

I have verified that this pull request:

andrewn and others added 30 commits May 29, 2019 12:51
The tests mock the mogoose User model and the express Response model
which isn't good. We should find a solution that makes use of
the actual model object.
This ensures it's not accidentally exposed to the client when returning
the key metadata
This is until this page's components are made theme-aware
There's duplication in the user and session endpoints that
all return the same shaped user model data. The new helper should keep
them consistent when new properties need to be exposed.
* Run tests on CI

* Create a lint error on purpose

* Splits build into test and deploy stages

lint and test jobs will run in parallel and if both are successful
(and branch is master), deploy will run.

* Revert "Create a lint error on purpose"

This reverts commit 306c91c.

* Updating snapshot

* Run deploy only on master branch (not PRs)

* Use global deploy config item to avoid building on PRs
@thegitone23 thegitone23 changed the title Added safegaurd against invalid project id in the method getFileContent Added safegaurd against invalid project id and undefined file path Feb 18, 2020
@thegitone23 thegitone23 requested a review from andrewn February 18, 2020 15:44
@thegitone23
Copy link
Contributor Author

@catarak can you please have a look ...

catarak and others added 22 commits March 3, 2020 12:48
Upgrade node version to 12.16.1, update Node installation docs
…ser model, return totalSize from user api request
…-asset-limit

Feature/public api asset limit, Fixes processing#168
…1218 (processing#1330)

* fix(file.controller.js): set headers for file extensions from MIME - I1218
* Use name to work out content type and provide fallback

Co-authored-by: Andrew Nicolaou <[email protected]>
@catarak
Copy link
Member

catarak commented Mar 30, 2020

looks great, merging!

@catarak catarak merged commit 7f8ab3c into processing:master Mar 30, 2020
@thegitone23 thegitone23 deleted the local-develop branch May 7, 2020 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong status code returned for sketch/file that does not exist