Skip to content

FileManager - Give better response if a download of more than one file is requested #1022

@taniwallach

Description

@taniwallach

If I select multiple files and click Download in the FileManager, the displayed page looks unusual (layout messed up) and the warnings are not particularly helpful. Giving a nicer error message and a regularly formatted page would be nice.

WeBWorK Warnings
WeBWorK has encountered warnings while processing your request. If this occured when viewing a problem, it was likely caused by an error or ambiguity in that problem. Otherwise, it may indicate a problem with the WeBWorK system itself. If you are a student, report these warnings to your professor to have them corrected. If you are a professor, please consult the warning output below for more information.

Warning messages
Use of uninitialized value $pwd in string eq at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm line 246.
Use of uninitialized value $pwd in string eq at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm line 246.
Use of uninitialized value $dir in substitution (s///) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm line 1032.
Use of uninitialized value $dir in split at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm line 1033.
Use of uninitialized value $root in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm line 1052.
Use of uninitialized value $pwd in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm line 1052.
Request information
Time	Thu Sep 26 13:15:35 2019
Method	POST
URI	/webwork2/spring17mth164/instructor/file_manager/

followed by

You can only download one file at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions