Bug 673494 - [abrt] pybliographer-1.2.14-1.fc14: Fields.py:261:__init__:DateError: Illegal year value
Summary: [abrt] pybliographer-1.2.14-1.fc14: Fields.py:261:__init__:DateError: Illegal...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: pybliographer
Version: 14
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zoltan Kota
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c268a7d2
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-28 13:00 UTC by Seppo Enarvi
Modified: 2011-02-08 10:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-08 10:56:34 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (1.15 KB, text/plain)
2011-01-28 13:00 UTC, Seppo Enarvi
no flags Details
An example RIS citation file. (417 bytes, application/x-Research-Info-Systems)
2011-02-02 15:17 UTC, Seppo Enarvi
no flags Details

Description Seppo Enarvi 2011-01-28 13:00:01 UTC
abrt version: 1.1.14
architecture: i686
cmdline: /usr/bin/python /usr/bin/pybliographer --quiet /usr/share/pybliographer/pybliographic.py
comment: Probably the file format is incorrect, but the program shouldn't crash anyway.
component: pybliographer
executable: /usr/bin/pybliographer
kernel: 2.6.35.10-74.fc14.i686
package: pybliographer-1.2.14-1.fc14
reason: Fields.py:261:__init__:DateError: Illegal year value
release: Fedora release 14 (Laughlin)
time: 1296219406
uid: 1004

backtrace
-----
Fields.py:261:__init__:DateError: Illegal year value

Traceback (most recent call last):
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 584, in ui_open_document
    self.open_document (url, how)
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 625, in open_document
    data = Open.bibopen (url, how = how)
  File "/usr/share/pybliographer/Pyblio/Open.py", line 112, in bibopen
    base = simple_try (url, how)
  File "/usr/share/pybliographer/Pyblio/Open.py", line 94, in simple_try
    base = opener (url, 0)
  File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 369, in opener
    base = Isifile (url)
  File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 258, in __init__
    entry = iter.first ()
  File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 94, in first
    return self.next()
  File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 200, in next
    in_table['date'] = Fields.Date(val)
  File "/usr/share/pybliographer/Pyblio/Fields.py", line 261, in __init__
    raise Exceptions.DateError (_("Illegal year value"))
DateError: Illegal year value

Local variables in innermost frame:

How to reproduce
-----
1. Choose File > Open.
2. Select bibliography type "ISIFile".
3. Select an RIS citation file.

Comment 1 Seppo Enarvi 2011-01-28 13:00:03 UTC
Created attachment 475798 [details]
File: backtrace

Comment 2 Zoltan Kota 2011-02-02 10:17:17 UTC
Could you attach a sample isi file? I could not reproduce the error.
Thanks!

Comment 3 Seppo Enarvi 2011-02-02 15:17:43 UTC
Created attachment 476590 [details]
An example RIS citation file.

Here is an example RIS file that makes the program crash.

Comment 4 Seppo Enarvi 2011-02-02 15:20:02 UTC
Seems like you just should catch some exception when opening a document, in case the input is not valid.

Comment 5 Zoltan Kota 2011-02-08 10:55:47 UTC
Thanks for the file! Well, the RIS format is a bit different from ISI, so if you open the RIS file with the ISI importer, you don't get what you want.
But the DateError can be catched I think, and it will be fixed upstream.


Note You need to log in before you can comment on or make changes to this bug.