Speedgrader File Outline is wonky when viewing an archive submission where the files have been tarred in an "unconventional way".
To reproduce: submit (after unzipping) tartraversal2.tar.zip and view the submission
(it was created by having files traverse two levels up first, e.g. tar -cf tartraversal2.tar ../../Desktop/MossTest/autograde-Makefile ../../Desktop/MossTest/dave.c ../../Desktop/MossTest/hello.c)
The problem seems to lie in the sanitize_directories method of archive.rb
Speedgrader File Outline is wonky when viewing an archive submission where the files have been tarred in an "unconventional way".
To reproduce: submit (after unzipping) tartraversal2.tar.zip and view the submission (it was created by having files traverse two levels up first, e.g.
tar -cf tartraversal2.tar ../../Desktop/MossTest/autograde-Makefile ../../Desktop/MossTest/dave.c ../../Desktop/MossTest/hello.c
)The problem seems to lie in the
sanitize_directories
method ofarchive.rb