Bug 676304 - Badly formed error message
Summary: Badly formed error message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: web UI
Version: 0.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: 0.14
Assignee: xjia
QA Contact: tools-bugs
URL:
Whiteboard: UX
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-09 12:31 UTC by Chris Ward
Modified: 2015-08-26 05:43 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-14 01:11:35 UTC


Attachments (Terms of Use)
For version 0.16. This bug can't be reproduced. (84.64 KB, image/png)
2014-04-10 04:29 UTC, xjia
no flags Details

Description Chris Ward 2011-02-09 12:31:49 UTC
Description of problem:

Notice the error message contains u'' wapper

Failed to import job because of: u'No Distro matches Recipe: <distroRequires><and><distro_arch value="i386" op="="></distro_arch><distro_name value="RHEL6-Server-6.0_nfs-i386" op="="></distro_name><distro_method value="nfs" op="="></distro_method></and><distro_virt value="" op="="></distro_virt></distroRequires>'

And it would be nice if the message was formatted a little.

Say, for example:


Failed to import job because of: 
"No Distro matches Recipe: 
 <distroRequires> 
  <and> 
   <distro_arch value="i386" op="="></distro_arch>
   <distro_name value="RHEL6-Server-6.0_nfs-i386" op="="></distro_name>
   <distro_method value="nfs" op="="></distro_method>
  </and>
 <distro_virt value="" op="="></distro_virt>
 </distroRequires>"




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

How reproducible:
Submit a badly formed (cloned) task job.

Comment 1 xjia 2013-06-04 06:43:10 UTC
I can reproduce on beaker-devel.

Comment 3 xjia 2014-04-10 04:29:22 UTC
Created attachment 884737 [details]
For version 0.16. This bug can't be reproduced.

For version 0.16. This bug can't be reproduced. 

So close this bug.

Comment 4 Dan Callaghan 2014-04-14 01:11:35 UTC
This was concidentally fixed by tidying up the str() of BX in this commit, which went into Beaker 0.14.0:

http://git.beaker-project.org/cgit/beaker/commit/?id=cfd78465460c9316cdd43abdf710ed868654c820


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