| Summary: | Services Management - Invalid parameters lead to methods failing with exceptions | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 6 | Reporter: | Miroslav Cupák <mcupak> | ||||||
| Component: | Portal | Assignee: | Peter Palaga <ppalaga> | ||||||
| Status: | VERIFIED --- | QA Contact: | |||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 6.0.x | CC: | bdawidow, epp-bugs, jpallich, theute, tkyjovsk | ||||||
| Target Milestone: | ER01 | ||||||||
| Target Release: | 6.1.1 | ||||||||
| Hardware: | i686 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||||
| Doc Text: |
The way Service Management method errors are displayed in the UI has been improved to better describe the error. Messages in the log file were descriptive, however messages displayed in the UI were not quite descriptive enough. The messages displayed are now more useful to the user.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | Type: | Bug | |||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Miroslav Cupák
2012-04-03 10:31:22 UTC
Created attachment 574817 [details]
Extract from the server log produced by loadConfiguration method.
Created attachment 574818 [details]
Extract from the server log produced by a get method in templatestatistics section.
This could be a candidate for an Enhancement Release Note as it improves the way the log messages are recorded. Setting Flag to ? and provided draft release notes. Nicolas agreed to fix this in WS. Fixing in WS means that it is too late for JBoss Portal 6.1.1. I improved the pull request in upstream in accordance with the proposal of Nicolas Filotto. https://github.com/gatein/gatein-portal/pull/741 The propagation of errors to the client is fixed in org.exoplatform.management.data.RestResource through making the methods return RestResource rather than Object. Further, I have added parameter checks throwinf IllegalArgumentException on "id empty" and "object with the given id does not exist" in following methods: org.exoplatform.groovyscript.text.TemplateService.reloadTemplate(String) org.exoplatform.groovyscript.text.TemplateStatisticService.getMaxTime(String) org.exoplatform.groovyscript.text.TemplateStatisticService.getMinTime(String) org.exoplatform.groovyscript.text.TemplateStatisticService.getExecutionCount(String) org.exoplatform.groovyscript.text.TemplateStatisticService.getAverageTime(String) org.exoplatform.portal.application.ApplicationStatisticService.getMaxTime(String) org.exoplatform.portal.application.ApplicationStatisticService.getMinTime(String) org.exoplatform.portal.application.ApplicationStatisticService.getAverageTime(String) org.exoplatform.portal.application.ApplicationStatisticService.getExecutionCount(String) org.exoplatform.portal.application.PortalStatisticService.getMaxTime(String) org.exoplatform.portal.application.PortalStatisticService.getMinTime(String) org.exoplatform.portal.application.PortalStatisticService.getAverageTime(String) org.exoplatform.portal.application.PortalStatisticService.getThroughput(String) org.exoplatform.portal.application.PortalStatisticService.getExecutionCount(String) Finally, the in JavaScript on the client side, I have added a piece of code that shows the error message (if available) to the user. I'm setting the Release Note aspect of this issue to ? This is so a release note is not included for this issue prematurely before the issue is resolved. Set needinfo to aakanksha or I if this issue passes QE before 6.1.1 is released, and we'll set the flag so the release note is included. Verified with 6.1.1.CR1. |