Skip to content

redacted pages from bulk upload exam cannot be downloaded by student #12082

@bmcutler

Description

@bmcutler

Describe the bug
An exam was graded with the scanned to pdf option and the instructor specified redactions on the pages of the exam.

Image

Once grades are released, the student can view & download the original pdf (with all pages).
The student can also successfully view the redacted page images.
But when the student clicks on the 'download' button for the page, they get this frog robot error:

22:34:58 09/28/2025 - FATAL ERROR
InvalidArgumentException (Code: 0) thrown in /usr/local/submitty/site/app/libraries/database/DatabaseQueries.php (Line 6018) by:
        throw new \InvalidArgumentException('Gradeable does not exist!');


Message:
Gradeable does not exist!

Stack Trace:
#0 /usr/local/submitty/site/app/libraries/Access.php(894): app\libraries\database\DatabaseQueries->getGradeableConfig()
#1 /usr/local/submitty/site/app/libraries/Access.php(613): app\libraries\Access->canUserAccessPath()
#2 /usr/local/submitty/site/app/libraries/Access.php(397): app\libraries\Access->canUser()
#3 /usr/local/submitty/site/app/controllers/MiscController.php(305): app\libraries\Access->canI()
#4 unknown file(unknown line): app\controllers\MiscController->downloadCourseFile()
#5 /usr/local/submitty/site/app/libraries/routers/WebRouter.php(254): call_user_func_array()
#6 /usr/local/submitty/site/app/libraries/routers/WebRouter.php(232): app\libraries\routers\WebRouter->run()
#7 /usr/local/submitty/site/public/index.php(147): app\libraries\routers\WebRouter::getWebResponse()

USER: cutleb
URL: https://submitty.cs.rpi.edu//courses/f25/REDACTED/download?dir=submissions&path=%252Fvar%252Flocal%252Fsubmitty%252Fcourses%252Ff25%252FREDACTED%252Fsubmissions_processed%252Ftest1%252FREDACTED%252F2%252F.upload_page_01.jpg

Also, when the student attempts to "download all files", they only get the .pdf, they do not get the page pngs.

Expected behavior

The student should be able to save the pngs. Or if we decided they should not have access to the redacted files, they should not appear on the list of available files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions