Summary: | [Chameleon -Core] Service Instance unclear error messages | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Chris Thorne <cthorne@dmsolutions.ca> |
Component: | Service Instance | Assignee: | Paul Spencer <pspencer@dmsolutions.ca> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | chameleon-dev@lists.maptools.org |
Priority: | P1 | ||
Version: | 1.99 | ||
Target Milestone: | 1.99 beta 3 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
need to trap these errors and emit a service exception.
fixed, the error message is now correctly produced when no default context is provided in the configuration file AND no valid CONTEXTS parameter is suppplied. also fixed same problem with default template. also adding handling of CONTEXTS= to generate a more appropriate message.
No default Context Error Result: request URI was http://localhost/chameleon/cwc2/cwc2.php query string was service=VCG&version=0.1.0&request=GetApplication Invalid request. No CONTEXTS parameter was provided and the Service Instance has no default context This is good. But when no default Template defined the Result is. No error is presented, infact nothing at all. We should see a similar error found in the browser.
Changed target to 1.99 Beta 3.
added detection of the 'no default template' case with the following message: request URI was http://localhost/chameleon/cwc2/cwc2.php query string was service=VCG&version=0.1.0&request=GetApplication Invalid request. No TEMPLATES parameter was provided and the Service Instance has no default template. Also added the same handler for languages.
Verified on windows. When calling service instance: http://localhost/chameleon/cwc2/cwc2.php? service=VCG&request=GetApplication&version=0.1.0 I was allowed to change the cwc2.xml config options "default_context", "default_language" and "default_template" to blank. Each of these changes resulted in a clear message to the user. For example: request URI was http://localhost/chameleon/cwc2/cwc2.php query string was service=VCG&request=GetApplication&version=0.1.0 Invalid request. No TEMPLATES parameter was provided and the Service Instance has no default template Seting this to verified
Verified on Fedora Core 2.