Bug 520796 - percent symbols in filenames make config management die in 500/ISEs
Summary: percent symbols in filenames make config management die in 500/ISEs
Keywords:
Status: CLOSED DUPLICATE of bug 524265
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 0.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jesus M. Rodriguez
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space08
TreeView+ depends on / blocked
 
Reported: 2009-09-02 12:39 UTC by Joshua Roys
Modified: 2012-03-06 09:06 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-20 20:15:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Roys 2009-09-02 12:39:32 UTC
Description of problem:
percent symbols in filenames make config management die in 500/ISEs


Version-Release number of selected component (if applicable):
rhncfg-5.9.7
spacewalk-backend-0.6.30


How reproducible:
Steps to Reproduce:
1. add /etc/gconf/gconf.xml.mandatory/%gconf-tree.xml to config management
2. run rhncfg-client diff
3. boom
  
Actual results:
500/ISE


Expected results:
diff


Additional info:
Exception reported from prod-ps
Time: Tue Sep  1 17:16:17 2009
Exception type cx_Oracle.DatabaseError
Exception while handling function config.client.get_file
Request object information:
URI: /CONFIG-MANAGEMENT
Remote Host: localhost.localdomain
Server Name: 10.20.30.100:0
Headers passed in:
	Accept-Encoding: identity
	Content-Length: 544
	Host: localhost
	content-encoding: x-gzip
	content-transfer-encoding: binary
	content-type: application/binary
	user-agent: rhn.rpclib.py/$Revision$
	x-client-version: 1
	x-info: RPC Processor (C) Red Hat, Inc (version $Revision$)
	x-rhn-client-capability: rhncfg.dirs_enabled(1)=1,configfiles.base64_enc(1)=1
	x-rhn-transport-capability: follow-redirects=3
	x-transport-info: Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheRequest.py", line 120, in call_function
    response = apply(func, params)
  File "/usr/share/rhn/server/handlers/config/rhn_config_management.py", line 157, in client_get_file
    return self._client_get_file(server_id, filename)
  File "/usr/share/rhn/server/handlers/config/rhn_config_management.py", line 199, in _client_get_file
    row = h.fetchone_dict()
  File "/usr/share/rhn/server/rhnSQL/sql_base.py", line 249, in fetchone_dict
    ret = ociDict(self.description, self._real_cursor.fetchone())
DatabaseError: column at array pos 0 fetched with error: 1406

Local variables by frame
Frame fetchone_dict in /usr/share/rhn/server/rhnSQL/sql_base.py at line 249
	                self = <type 'instance'> <__builtin__.OracleCursor on <cx_Oracle.Connection to .....>>

Frame _client_get_file in /usr/share/rhn/server/handlers/config/rhn_config_management.py at line 199
	                   h = <type 'instance'> <__builtin__.OracleCursor on <cx_Oracle.Connection to .....>>
	           server_id = <type 'int'> 1000010000
	                self = <type 'instance'> <server.handlers.config.rhn_config_management.ConfigManagement instance at 0x2b211bdf9b90>
	            filename = <type 'str'> /etc/gconf/gconf.xml.mandatory/%gconf-tree.xml

Comment 1 Joshua Roys 2010-01-20 20:15:28 UTC
Almost certainly a duplicate of bug #524265 in some fashion or another.  I just now realized the tracebacks were identical.  I have no idea why removing this file made the problem go away, at the time...  ah, well.

Upgrading cx_Oracle to 4.4.1 and re-adding the %gconf-tree.xml file no longer produces the errors.

Marking as a duplicate and closing.

*** This bug has been marked as a duplicate of bug 524265 ***


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