Skip to content

[BUG] File with new line in name makes yoda portal crash #496

Open
@fj-morales

Description

@fj-morales

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

A file can be created with a name containing a newline. This file can be uploaded to yoda via icommands, and shown in the yoda web portal. The issue is when attempting to download the file, the portal crashes with Internal Server Error

Expected Behavior

It should be possible to download the file

Steps To Reproduce

  1. From the command line (e.g. in linux), create a file with a newline in the name:
touch "my file with
new line"
  1. Upload file to a yoda collection with privileges
iput "my file with
new line"
  1. Open the yoda portal, search for the file and attempt to download it

Environment

- Yoda: v1.9.0
- Ansible: 2.1.3
- Operating System: CentOS7
- Browser: Google Chrome

Anything else?

No response

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