Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2687

Regex for reading title from Content-Disposition is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.16
    • None
    • None

    Description

      Given URL: https://www.amuse-project.org/file/download/default/E6D0537647AF1204656076943F4729B0/Koopstra2016_5fOntologically%20classifying%20ERP%20feature,%20the%20NEXT%20method_5fFinal.pdf

      And regex:
      bfilename=['\"](.+)['\"]

      We get the following title:
      Koopstra2016_Ontologically classifying ERP feature, the NEXT method_Final.pdf"; filename*=utf-8'

      Changed regex to:
      bfilename=['\"]([^\"]+) fixes it

      Attachments

        1. NUTCH-2687.patch
          0.8 kB
          Markus Jelsma

        Activity

          People

            markus17 Markus Jelsma
            markus17 Markus Jelsma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: