Skip to content

Provide an option to disable the quotes for the filename at the content-disposition header #485

@markieww

Description

@markieww

When sendfilename="true" is set at module-level of an AS2DirectoryPollingModule in config.xml the filename is sent as header content-disposition: Attachment; filename="xxxx.csv"

The target AS2-Server we like to communicate with is quite picky about the quotes around the filename. So I like to introduce an option to toggle the quoting of this filename.

Proposed behaviour

The configuration has to take place at partnership-level.

  • Include the quotes when <attribute name="quote_send_file_name" value="true"/> or no option is given (<- current behaviour is the default for keeping the compatibility)
    • results in content-disposition: Attachment; filename="xxxx.csv"
  • Exclude the quotes when <attribute name="quote_send_file_name" value="false"/>
    • results in content-disposition: Attachment; filename=xxxx.csv

I will provide a pull request.

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