nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Jelsma (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NUTCH-2687) Regex for reading title from Content-Disposition is wrong
Date Wed, 16 Jan 2019 14:48:00 GMT

     [ https://issues.apache.org/jira/browse/NUTCH-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Markus Jelsma updated NUTCH-2687:
---------------------------------
    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



> Regex for reading title from Content-Disposition is wrong
> ---------------------------------------------------------
>
>                 Key: NUTCH-2687
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2687
>             Project: Nutch
>          Issue Type: Bug
>            Reporter: Markus Jelsma
>            Assignee: Markus Jelsma
>            Priority: Major
>             Fix For: 1.16
>
>
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message