Bug 167263 - Python traceback upon submitting advisory text - parse error.
Summary: Python traceback upon submitting advisory text - parse error.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora Infrastructure
Classification: Retired
Component: update system
Version: unspecified
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Bill Nottingham
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-01 00:49 UTC by Mike A. Harris
Modified: 2016-09-20 02:36 UTC (History)
3 users (show)

Fixed In Version: 1.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-03 01:37:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike A. Harris 2005-09-01 00:49:00 UTC
Description of problem:
Fedora errata system explodes with a Python traceback when I submit my
advisory text:



Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File
"/usr/src/build/513032-i386/install/usr/lib/python2.2/site-packages/mod_python/apache.py",
line 332, in HandlerDispatch

  File
"/usr/src/build/513032-i386/install/usr/lib/python2.2/site-packages/mod_python/publisher.py",
line 199, in handler

  File "/mnt/redhat/fedora-updates/edit.py", line 61, in add_update
    db.query(query)

  File "/mnt/redhat/fedora-updates/db.py", line 80, in query
    result = db.query(q)

_pg.error: ERROR:  parser: parse error at or near "Option" at character 1585




Here is a copy of the advisory text I was trying to submit:
=====8<==========================================================
This new release of xorg-x11 provides a number of bug
fixes to the previous release, including:

- Fix for the infamous "libvgahw" bug, which was caused
  by a gcc compiler bug.  Many users were affected by this
  issue, exhibiting symptoms such as X server crash or
  corrupted display during OS installation or during X
  server startup after performing a text mode install.
  Green or blue border/banding on screen for mga and
  some other hardware.  A variety of video hardware that
  was affected by this issue should now work.  Some users
  may still experience problems with similar sounding
  symptoms after this update, and should query bugzilla
  to find out if the particular issue is already
  reported in a separate bug, or file a new report
  if they still experience problems.

- A problem with the Dutch keyboard layout has been
  resolved.

- The open source "nv" driver for Nvidia hardware has been
  updated to the latest version.  Additionally, a
  workaround has been added to the driver to disable known
  unstable acceleration primitives on some GeForce
  6200/6600/6800 models.

- Several bugs have been fixed in the Xnest X server.

- DRI is now enabled by default on all ATI Radeon hardware
  except for the Radeon 7000/Radeon VE chipsets, which
  is known to be unstable for many users currently when
  DRI is enabled.  Radeon 7000 users can re-enable DRI
  if desired by using 'Option "DRI" in the device
  section of the config file, with the understanding that
  we consider it unstable currently.

- The X server's pci config space handling code has been
  updated to avoid PCI config space contention issues
  between the X server and the kernel.  This resolves a
  number of bugs that have been reported to us concerning
  transient system lockups during OS startup on certain
  systems containing certain specific hardware
  combinations.

Fedora Core 4 users are encouraged to update to this new
release, and report any regressions in bugzilla.
=====8<==========================================================


It appears that it is trying to parse the actual advisory text
that is input, instead of treating it as a block of text.  There
may be security vulnerabilities in the CGI script code perhaps.
I'm going to update the text using some other syntax to try and
avoid the bug.

Comment 1 Mike A. Harris 2005-09-01 00:58:32 UTC
After removing the ' in front of "Option", it had another traceback on
the line beginning "The X server's", due to the ' I used there too.  Kindof
surprising that nobody has used a common punctuation symbol ' in an advisory
for FC yet.  ;o)




Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File
"/usr/src/build/513032-i386/install/usr/lib/python2.2/site-packages/mod_python/apache.py",
line 332, in HandlerDispatch

  File
"/usr/src/build/513032-i386/install/usr/lib/python2.2/site-packages/mod_python/publisher.py",
line 199, in handler

  File "/mnt/redhat/fedora-updates/edit.py", line 61, in add_update
    db.query(query)

  File "/mnt/redhat/fedora-updates/db.py", line 80, in query
    result = db.query(q)

_pg.error: ERROR:  parser: parse error at or near "s" at character 1726



Comment 2 Luke Macken 2005-09-03 01:37:01 UTC
Fixed.


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