Bug 676304

Summary: Badly formed error message
Product: [Retired] Beaker Reporter: Chris Ward <cward>
Component: web UIAssignee: xjia <xjia>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.12CC: bpeck, dcallagh, jingwang, mcsontos, mjia, rmancy, tools-bugs, xjia, xtian
Target Milestone: 0.14   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: UX
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-14 01:11: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:
Attachments:
Description Flags
For version 0.16. This bug can't be reproduced. none

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