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

‎SecuredUpload‎::checkMaxLinesLength put in a regression for PDF files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 18.12.13
    • 18.12.13
    • framework/security
    • None

    Description

      As commented at https://s.apache.org/wpkuj, while working on OFBIZ-12926 I realised that checkMaxLinesLength put in a possible regression for PDF files.

      As a summary: we can't use checkMaxLinesLength for PDF files because they may contain several CharSet encodings. Hence no possibility to use Files::readAllLines that needs a sole CharSet. So we need to bypass this check.

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: