Your message dated Tue, 08 Aug 2017 16:22:53 +0000
with message-id <e1df7hr-0001lg...@fasolo.debian.org>
and subject line Bug#779601: fixed in xapers 0.8.2-1
has caused the Debian Bug report #779601,
regarding [xapers] xapers does not handle escaped colon in Jabref file fields
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
779601: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779601
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: xapers
Version: 0.5.2-1
Severity: normal
Tags: patch

The Jabref file field can contain escaped colons, when they are part of
the file description or file name. For example the following bibtex entry

@Article{ES2014,
  Title    = {An $L^p$ Theory for Stationary Radiative Transfer},
  Author   = {Herbert Egger and Matthias Schlottbom},
  Journal  = {Applicable Analysis},
  Year     = {2014},

  Month    = apr,
  Number   = {6},
  Pages    = {1283--1296},
  Volume   = {93},

  Doi      = {10.1080/00036811.2013.826798},
  File     = {arXiv\:1304.6504v2:ES2014preprint.pdf:PDF}
}

is parsed by Jabref as being linked to a file ES2014preprint.pdf with
description arXiv:1304.6504v2. Currently the bibtex parser of xapers
chokes on this field as it uses split(':') which does not care about the
escaped \:. The attached patch replaces the split with an re.split with
negative lookbehind assertion to correctly handle escaped colons.

Cheers,
Felix

From ccea03f483abbd1dd2811e30d2b03abc8f226971 Mon Sep 17 00:00:00 2001
From: Felix Gruber <fel...@gmx.de>
Date: Mon, 2 Mar 2015 22:39:24 +0100
Subject: [PATCH] fix JabRef file field with escaped :

---
 lib/xapers/bibtex.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/xapers/bibtex.py b/lib/xapers/bibtex.py
index 45d908b..e095255 100644
--- a/lib/xapers/bibtex.py
+++ b/lib/xapers/bibtex.py
@@ -1,6 +1,7 @@
 import os
 import sys
 import io
+import re
 import json
 import pybtex
 from pybtex.core import Entry, Person
@@ -101,7 +102,7 @@ class Bibentry():
         """Returns file path if file field exists.
 Expects either single path string or Mendeley/Jabref format."""
         try:
-            parsed = self.entry.fields['file'].split(':')
+            parsed = re.split(r'(?<!\\):', self.entry.fields['file'])
             if len(parsed) > 1:
                 return parsed[1]
             else:
-- 
2.1.4


--- End Message ---
--- Begin Message ---
Source: xapers
Source-Version: 0.8.2-1

We believe that the bug you reported is fixed in the latest version of
xapers, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 779...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jameson Graef Rollins <jroll...@finestructure.net> (supplier of updated xapers 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 08 Aug 2017 08:36:24 -0700
Source: xapers
Binary: xapers
Architecture: source
Version: 0.8.2-1
Distribution: unstable
Urgency: medium
Maintainer: Jameson Graef Rollins <jroll...@finestructure.net>
Changed-By: Jameson Graef Rollins <jroll...@finestructure.net>
Description:
 xapers     - Personal journal article management and indexing system
Closes: 779601 823964 870289
Changes:
 xapers (0.8.2-1) unstable; urgency=medium
 .
   * New minor release (Closes: #779601, #823964, #870289)
   * Update standards version to 4.0.0 and add autopkgtest
Checksums-Sha1:
 34997604b0827345a079b5740a15058899b7e5b8 1924 xapers_0.8.2-1.dsc
 b7546dcd9fc2c4b2adfbb1f4219aa0a76f379fa5 160938 xapers_0.8.2.orig.tar.gz
 6cd35d486f5757b1600f2ae410e0bcbc7bd9b10b 3036 xapers_0.8.2-1.debian.tar.xz
 ecdee56dfcedce8c5d7db2647848303dce49b738 7812 xapers_0.8.2-1_source.buildinfo
Checksums-Sha256:
 63a829bf9e47136313687dfc72ff851f41cbb35a9bd15bf1537a3df60eceee71 1924 
xapers_0.8.2-1.dsc
 ad52cf46fd87807dd53e94d5a8494202335be205d8b494d8e086483c2c347f7a 160938 
xapers_0.8.2.orig.tar.gz
 e67e709bacde91c28494fa3ac689a6ce4864967d0bf5aaa3492b13420d7967cf 3036 
xapers_0.8.2-1.debian.tar.xz
 9cd2f1c97aa48297016fd685ed6e8c7befeb9c7896ce73f4584bfe84876cff28 7812 
xapers_0.8.2-1_source.buildinfo
Files:
 f31989be0053ede7ed86fd96fe7f64c4 1924 text optional xapers_0.8.2-1.dsc
 373a7568f6ddf0f84c77877f6b0de2cd 160938 text optional xapers_0.8.2.orig.tar.gz
 e4bccf9838708f65ac247e0eddb075c3 3036 text optional 
xapers_0.8.2-1.debian.tar.xz
 0dfb349f5987c835869cf2f80d1c14e7 7812 text optional 
xapers_0.8.2-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEEtl0IW5QRe4ExYLZZ7TTOq+J7qrwFAlmJ4LwbHGpyb2xsaW5z
QGZpbmVzdHJ1Y3R1cmUubmV0AAoJEO00zqvie6q86HYP/3lHf7+iM8k+PJS0Sb4/
BVKZEZIRhVf/QCn3pXO4V1itzAHjbc5brnFbnxuYtnMei+jtNabB+D+ySRdVw0Mn
nlu/+cGswXBI95FvpNxyX7e1Euw/kabbVSj+RC9NQH3l4qTqp2zxshED1Lrn31U6
SsNrj0JuUNA42Y8BwgE1NrhyZqmHWsoPWNzVu6M+liu8jv6I5N7IliWQtnCIPoGs
2xGQ62dARa/phlnF7gPUtAjcROE7qf2oSI3Lcu19K48BYnAsZyQR2obkpYcFaGmu
AcrZMUcS3WAs52QBNwIZVq8ua1lSesiKtP01K8b1wxSyGWOPvyJsG1Yt7+de1Ta/
3pA4ti7l1IDz/us8RwA+nfquDVKe1eJYAcUPxtnYgeeCmQ4ntOvQJaW0k7JbRKEx
Dldoea8s/m4oOZKRdXtfOt9UW9bNfws56QOXkJ33WQwLA8t8hhhcrFBQ3PeoH1Au
S7pwZgpl/y8d55gHCBWvC51aroUAEkPEY9S4znqn0Ynve2BveMJJb8zLqe4ND04I
hlRkvbx9zSmI40ZAD9ZIzfBGKCJnx2IUZtII5zGTEfd8Lu9BOieatKZuQh8hDba1
29UIMd0TsGAqOQxqH4KfNEX+9DHX7dYU/qYCImnfs3rysuf2erw5qh21sAGZMrXq
coAxgMbefIojmfutnuECp5PP
=J0o3
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to