Bug 169785 - errata system cannot handle apostrophes in comment field
errata system cannot handle apostrophes in comment field
Status: CLOSED CURRENTRELEASE
Product: Fedora Infrastructure
Classification: Retired
Component: update system (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Luke Macken
Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-03 12:23 EDT by William Cohen
Modified: 2016-09-19 22:36 EDT (History)
3 users (show)

See Also:
Fixed In Version: 1.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-03 12:40:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description William Cohen 2005-10-03 12:23:22 EDT
Description of problem:

The comment field for errata cannot handle apostrophes.


Version-Release number of selected component (if applicable):


How reproducible:

Every time.


Steps to Reproduce:
1. Select and errata, for example
https://porkchop.devel.redhat.com/fedora-updates/show.py?pkg=systemtap-0.3-1&update=Testing

2. In the comments field put in a appostrophe ("'" no quotes around it)
3. Press the "Add Comment" button
  
Actual results:
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/comment.py", line 27, in index
    db.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 "wcohen" at character 157

Expected results:

The comment would be added without error


Additional info:
Comment 1 Luke Macken 2005-10-03 12:40:42 EDT
Fixed.

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