Bug 814579
| Summary: | pretty.print failed to print output in non-interactive mode | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Filip Brychta <fbrychta> | ||||
| Component: | CLI | Assignee: | Jay Shaughnessy <jshaughn> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jay Shaughnessy <jshaughn> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.4 | CC: | hrupp, jshaughn | ||||
| Target Milestone: | --- | ||||||
| Target Release: | RHQ 4.10 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-04-23 12:29:28 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Filip Brychta
2012-04-20 07:13:26 UTC
Created attachment 578884 [details]
contains test.js and output.txt
Investigate for easy/hard this would be to address setting priority to medium per BZ triage 4/23 (crouch, santos, oleary, foley) I run into this again today.
pretty.print failed to print PageList<ResourceOperationHistory> so the output of following code:
var resOpHistCri = new ResourceOperationHistoryCriteria();
var hist = OperationManager.findResourceOperationHistoriesByCriteria(resOpHistCri);
pretty.print(hist)
is empty.
Workaround for this is:
for(i=0;i<hist.size();i++){
pretty.print(hist.get(i));
}
I tracked this down and eventually found the root cause. I can't really explain it, must be a subtle issue with I/O.
commit 9eb9b7d8837736f0742eacf2151afb700733a2a9
Author: Jay Shaughnessy <jshaughn>
Date: Tue Oct 15 17:17:29 2013 -0400
Very strange issue. Replace out.print("\n") with out.println() calls
seems to solve the problem.
Verified on Version: 4.10.0-SNAPSHOT Build Number: 9eb9b7d Bulk closing of 4.10 issues. If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10. |