Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6554

streamContentToBrowser fails when the file name contains a comma, only with Chrome.

    Details

    • Flags:
      Patch

      Description

      streamContentToBrowser fails when the file name contains a comma, happens only with Google Chrome.
      Can easily be reproduced for example by uploading the Logo Image URL of the default organization in the party manager, that includes a comma of course.
      Fixed in my patch by wrapping the file name in quotes.

      Error on the browser console:
      GET https://localhost:8443/content/control/stream?contentId=10020 net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

      1. OFBIZ-6554.patch
        1.0 kB
        Francis Douet

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment - - edited

        Thanks Francis,

        At 19.5.1 section of http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html I read this example << Content-Disposition: attachment; filename="fname.ext">> So you solution is indubitably the right one

        Your patch is in

        trunk r1690086
        R14.12 r1690087
        R13.07 r1690088
        R12.04 r1690089

        Show
        jacques.le.roux Jacques Le Roux added a comment - - edited Thanks Francis, At 19.5.1 section of http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html I read this example << Content-Disposition: attachment; filename="fname.ext">> So you solution is indubitably the right one Your patch is in trunk r1690086 R14.12 r1690087 R13.07 r1690088 R12.04 r1690089

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            Francis Douet Francis Douet
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development