You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should not it be forbidden to be able to receive a file from outside the directories static/ and dynamic/?
I presume that test_bad_path_404 should verify this.
However, it tests the same thing as test_get_bad_file_404, namely that 404 should be returned for a non-existent file.
Solution
Create the file xyzt/abcdef.dat before trying to get it.
According to our specifications, we don't enforce the server to only serve the static and dynamic directories, we just specify how to handle them.
Regarding the other directories, since there is nothing specified, you can treat them as you wish.
The two tests you mention are just there to verify that if we trigger a request for a file that does not exist, the server will return a 404 not found.
I find however the request you opened valid - we should indeed define how the server should handle other directories - I will keep this issue open until we make a decision regarding this.
I'd like to archive this repo and add a note specifying that it was moved to https://github.com/systems-cs-pub-ro/so
to avoid confusion.
Before I do this, I'd like to close all the existing Issues
razvancrainea
changed the title
[5-aws] Create non-static/non-dynamic file for test_bad_path_404
assignments: [5-aws] Create non-static/non-dynamic file for test_bad_path_404
Mar 17, 2021
Question
Should not it be forbidden to be able to receive a file from outside the directories
static/
anddynamic/
?I presume that
test_bad_path_404
should verify this.However, it tests the same thing as
test_get_bad_file_404
, namely that404
should be returned for a non-existent file.Solution
Create the file
xyzt/abcdef.dat
before trying to get it.Expected outcome
Receive
404 Not Found
or403 Forbidden
.The mentioned tests
5-aws/checker-lin/_test/run_test.sh:506
The text was updated successfully, but these errors were encountered: