Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 119849
Summary: | system-config-httpd does not save changes | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve <svasaune> | ||||
Component: | system-config-httpd | Assignee: | Phil Knirsch <pknirsch> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | alphaseven, andresm, anfi, design, dscollon, duck, jt, redwolfe, rvokal, sigge, smacgreg, yoshia | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-07-30 14:05:35 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 114961, 135487 | ||||||
Attachments: |
|
Description
Steve
2004-04-02 16:54:01 UTC
I get the following errors on the console: Traceback (most recent call last): File "/usr/share/system-config-httpd/ApacheConf.py", line 273, in on_main_ok_button_clicked if not control.write(): File "/usr/share/system-config-httpd/ApacheControl.py", line 63, in write return stack.apache.write(force) File "/usr/share/system-config-httpd/ApacheGizmo.py", line 770, in write return ApacheBase.write (force) File "/usr/share/system-config-httpd/ApacheBase.py", line 4346, in write proc.appendStylesheet(STY) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/Processor.py", line 178, in appendStylesheet sty = self._styReader.fromSrc(iSrc, extElements=self.extElements) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 160, in fromSrc stylesheet = self._parseSrc(new_source) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 184, in _parseSrc expat.ErrorString(error.code)) Ft.Xml.Xslt.XsltException: Stylesheet (file:///usr/share/system-config-httpd/httpd.conf.xsl): XML parse error at line 10, column 15: not well-formed (invalid token) I'm seeing the same error in test 3. Will fix today. Read ya, Phil *** Bug 122085 has been marked as a duplicate of this bug. *** *** Bug 122839 has been marked as a duplicate of this bug. *** *** Bug 124229 has been marked as a duplicate of this bug. *** *** Bug 122783 has been marked as a duplicate of this bug. *** I am seeing the same error in the FC2 release version (system-config- httpd-1.2.0-3). Received same console errors as Comment #1 The same error happens in FC2 release. Even when making no change, the GUI does not close Add me to the list of those seeing this error, using official release FC2. I did a new install of FC2. But since I couldn't edit the HTTPD config had to step back to FC1. What's really odd, tried to edit my httpd.conf manually (as root), saved and closed. Re-opened it, and changes were lost. (/etc/httpd/conf/httpd.conf) The original thread posted 4-02-04, is there a resolution posted that I've missed? Created attachment 100890 [details]
eliminate XSL conversion error in xml
remove '<>' surrounding a URL: in the comments of the .xsl file
One way to eliminate the problem is to remove the '<>' surrounding the URL on line 10 of /usr/share/system-config-httpd/httpd.conf.xsl That's great Jim. That fix is working great for me on the release version of FC2. I tested this just now (as I did before for three days) and still it doesn't work! Here's the error from console: (system-config-httpd:9083): Gtk-WARNING **: Attempting to add a widget with type GtkLabel to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel Traceback (most recent call last): File "/usr/share/system-config-httpd/ApacheConf.py", line 273, in on_main_ok_button_clicked if not control.write(): File "/usr/share/system-config-httpd/ApacheControl.py", line 63, in write return stack.apache.write(force) File "/usr/share/system-config-httpd/ApacheGizmo.py", line 770, in write return ApacheBase.write (force) File "/usr/share/system-config-httpd/ApacheBase.py", line 4346, in write proc.appendStylesheet(STY) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/Processor.py", line 178, in appendStylesheet sty = self._styReader.fromSrc(iSrc, extElements=self.extElements) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 160, in fromSrc stylesheet = self._parseSrc(new_source) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 184, in _parseSrc expat.ErrorString(error.code)) Ft.Xml.Xslt.XsltException: Stylesheet (file:///usr/share/system-config-httpd/httpd.conf.xsl): XML parse error at line 10, column 15: not well-formed (invalid token) Have this bug, but a error on line 2 col 0. Invalid number attribute value '1.0' Running FC2 with all the latest updates (23.6.2004) hello I took same error too. when I edited the file /usr/share/system-config-httpd/httpd.conf.xsl with mcedit, I saw that, first line of the file went to one line down. After then I reopened file and I deleted first blank line and saved it, it worked without error. Hello Excuse me, I forgot to say, I am using Fedora core 2 final version. Fixed in latest rawhide version system-config-httpd-1.2.1-1 and later. Read ya, Phil *** Bug 127842 has been marked as a duplicate of this bug. *** *** Bug 128095 has been marked as a duplicate of this bug. *** Hi Phil i'm using the latest version (1.3.1.1) but i have this but too. here is my console error: Traceback (most recent call last): File "/usr/share/system-config-httpd/ApacheConf.py", line 273, in on_main_ok_button_clicked if not control.write(): File "/usr/share/system-config-httpd/ApacheControl.py", line 63, in write return stack.apache.write(force) File "/usr/share/system-config-httpd/ApacheGizmo.py", line 772, in write return ApacheBase.write (force) File "/usr/share/system-config-httpd/ApacheBase.py", line 4346, in write proc.appendStylesheet(STY) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/Processor.py", line 178, in appendStylesheet sty = self._styReader.fromSrc(iSrc, extElements=self.extElements) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 160, in fromSrc stylesheet = self._parseSrc(new_source) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 180, in _parseSrc success = self.parser.ParseFile(src.stream) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetHandler.py", line 348, in startElement raise e Ft.Xml.Xslt.XsltException: In stylesheet file:///usr/share/system-config-httpd/httpd.conf.xsl, line 2, column 0: Invalid number attribute value '1.0' Maybe you can help? thx Stefan Bleicker Hi Phil i'm using the latest version (1.3.1.1) but i have this but too. here is my console error: Traceback (most recent call last): File "/usr/share/system-config-httpd/ApacheConf.py", line 273, in on_main_ok_button_clicked if not control.write(): File "/usr/share/system-config-httpd/ApacheControl.py", line 63, in write return stack.apache.write(force) File "/usr/share/system-config-httpd/ApacheGizmo.py", line 772, in write return ApacheBase.write (force) File "/usr/share/system-config-httpd/ApacheBase.py", line 4346, in write proc.appendStylesheet(STY) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/Processor.py", line 178, in appendStylesheet sty = self._styReader.fromSrc(iSrc, extElements=self.extElements) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 160, in fromSrc stylesheet = self._parseSrc(new_source) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetReader.py", line 180, in _parseSrc success = self.parser.ParseFile(src.stream) File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetHandler.py", line 348, in startElement raise e Ft.Xml.Xslt.XsltException: In stylesheet file:///usr/share/system-config-httpd/httpd.conf.xsl, line 2, column 0: Invalid number attribute value '1.0' Maybe you can help? thx Stefan Bleicker Hm, if you look at the end of the traceback it complains about a different line and value there. Please remove system-config-httpd completely and reinstall it with the latest version and see if that works. Thanks, Read ya, Phil Hi Phil, i reinstalled it several times, at last, i reinstalled the whole fedora2 system - nothing - always the same problem. what next? thx stefan Could you post the first few lines of the file /usr/share/system-config-httpd/httpd.conf.xsl here in bugzilla? It looks as that might be corrupt. Also, the output of rpm -qf /usr/share/system-config-httpd/httpd.conf.xsl and rpm -qf /usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetHandler.py would be very helpful. Read ya, Phil Sure! here are the first lines of my httpd.conf.xsl: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method = "text" /> <xsl:template match="apache/serveroptions" xml:space="preserve"> output from rpm -qf /usr/share/system-config-httpd/httpd.conf.xsl: system-config-httpd-1.2.0-3 output from rpm -qf /usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetHandler.py: 4Suite-1.0-1.0.a3.1 Hope it helps! Thx Stefan Could you install the latest packages of 4Suite and system-config-httpd of Fedora Core 3 and see if the problem persits? Your files look ok and shouldn't cause any problems... Read ya, Phil Hello, The same error occured on my Fedora 2. I bugfixed it in modifying line 2 of httpd.conf.xsl like that : <xsl:stylesheet version='1' xmlns:xsl="http://www.w3.org/1999/XSL/Transform" See that I change version="1.0" in version='1' and Eurekaa I can save change in HTTP server config program :-) This sounds really like a bug of 4Suite not accepting the version correctly on some system for unknow reasons in FC2. It works nicely for me with the latest FC3 packages, so i'd like to keep that bug closed if noone can see that problem with the latest FC3 packages of s-c-h and 4Suite. Read ya, Phil ok. working i've changed /usr/share/system-config-httpd/httpd.conf.xsl: - from: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - to: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1"> system info: fedora core 2 system-config-httpd-1.2.0-3 4Suite-1.0-1.0.a3.1 libxml-1.8.17-10.1.1 tx! *** Bug 138526 has been marked as a duplicate of this bug. *** *** Bug 140323 has been marked as a duplicate of this bug. *** |