Giter Club home page Giter Club logo

so's People

Contributors

adrian-stanciu avatar alexandrasandulescu avatar andreia-oca avatar b12mihai avatar clupuishere avatar dapetcu21 avatar darius-m avatar dosarudaniel avatar edi33416 avatar elena19m avatar emirica avatar fabianpatras avatar gabriel-bercaru avatar gmuraru avatar ioanaciornei avatar ionut-mihalache avatar lauuuuuura avatar lucigrigo avatar radunichita avatar razvancrainea avatar sebisebi avatar silviupopescu avatar stefanvodita avatar teodutu avatar ungps avatar vladcorneci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

so's Issues

infrastructure: update ubuntu vm

I can't think of a very good reason for this, given that 18.04 is still supported. And that we don't have an explicit requirement for newer development tools. But, students might be impressed that we keep our infra up-to-date. And we could get them used with corporate best-practices.

infrastrucutre: add Windows 10 vm

There are no legal issues concerning the distribution of VM build scripts. And Microsoft provides free-to-download ISOs for Windows 10.

assignments: [5-aws] Create non-static/non-dynamic file for test_bad_path_404

Question

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.

Expected outcome

Receive 404 Not Found or 403 Forbidden.

The mentioned tests

5-aws/checker-lin/_test/run_test.sh:506

test_get_bad_file_404()
{
	init_test

	echo -ne "GET /$(basename $static_folder)/abcdef.dat HTTP/1.0\r\n\r\n" | \
		nc -q 1 localhost $aws_listen_port > abcdef.dat 2> /dev/null

	head -1 abcdef.dat | grep '^HTTP/' | grep '404' > /dev/null 2>&1
	basic_test test $? -eq 0

	rm abcdef.dat
	cleanup_test
}

# Use non-static and non-dynamic file path
test_bad_path_404()
{
	init_test

	echo -ne "GET /xyzt/abcdef.dat HTTP/1.0\r\n\r\n" | \
		nc -q 1 localhost $aws_listen_port > abcdef.dat 2> /dev/null

	head -1 abcdef.dat | grep '^HTTP/' | grep '404' > /dev/null 2>&1
	basic_test test $? -eq 0

	rm abcdef.dat
	cleanup_test
}

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.