Skip to content

Support missing properties from Content-Disposition spec [SPR-15555] #20114

Closed

Description

@spring-projects-issues

Damiano Albani opened SPR-15555 and commented

The ContentDisposition implementation currently misses 3 properties which are described in the RFC2183 specification:

  1. creation-date
  2. modification-date
  3. read-date

As in:

disposition-parm := filename-parm
                  / creation-date-parm
                  / modification-date-parm
                  / read-date-parm
                  / size-parm
                  / parameter

It would nice to have support for those parameters in Spring Web.


Affects: 5.0 RC1

Reference URL: #1443

Issue Links:

Referenced from: commits 97909f2

Activity

  1. spring-projects-issues commented on Jun 12, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    Juergen Hoeller As discussed with Rossen Stoyanchev, before merging this PR we should choose a strategy regarding to date/time that we previously exposed with long like in HttpHeaders.getAccessControlMaxAge().

    • Should we continue to use long for consistency?
    • Should we add Instant based variants and maybe deprecate long based ones?

    Given the fact that date/time can be confusing for the users when not strongly typed and the Java 8+ focus of Spring Framework 5.0, I tend to vote for the latter.

    Any thought? (this is a question we can also discuss during this afternoon meeting)

  2. spring-projects-issues commented on Jun 13, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    Fixed by using ZonedDateTime, I will create a follow-up issue targetted for RC3 in order to work on achieving consistency accross at least HttpHeaders API for the kind of property.

  3. added
    type: enhancement
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions