Mailinglist Archive: opensuse-buildservice (207 mails)

< Previous Next >
[opensuse-buildservice] Re: [PATCH] Reverting Sascha's unicode attempt. This made 'osc submit' always fail with uncaught exception: Fatal error: Start tag expected, '&lt;' not found at :1.
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Mon, 7 Mar 2011 18:39:29 +0100
  • Message-id: <20110307173929.GA7763@linux>
Hi,

On 2011-03-07 18:02:50 +0100, OBS osc wrote:
From: Juergen Weigert <jw@xxxxxxx>

---
osc/core.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/osc/core.py b/osc/core.py
index ccc1a06..560a36e 100644
--- a/osc/core.py
+++ b/osc/core.py
@@ -3512,7 +3512,12 @@ def create_submit_request(apiurl,
orev or show_upstream_rev(apiurl, src_project, src_package),
targetxml,
options_block,
- cgi.escape(unicode(message, "utf8")))
+ cgi.escape(message))
+
+ # Don't do cgi.escape(unicode(message, "utf8"))) above.
+ # Promoting the string to utf8, causes the post to explode with:
+ # uncaught exception: Fatal error: Start tag expected, '&lt;' not
found at :1.
+ # I guess, my original workaround was not that bad.

Hmm can you please provide the exact commandline of the failing osc
command? At the moment I fail to see what's wrong with a simple
"cgi.escape(message)" (without the unicode stuff).


Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups