You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2019/01/16 14:48:00 UTC

[jira] [Updated] (NUTCH-2687) Regex for reading title from Content-Disposition is wrong

     [ 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)