Bug 784

Summary: [Chameleon-Service Instance]No error message displayed when the "templates" parameter is not set in URL
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: Service InstanceAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 1.99   
Target Milestone: 1.99 beta 3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-10-28 09:21:34
When a request is sent to a Chameleon service instance with the "templates"
parameter not set, no error message is displayed.  Notice that the "cwc2.xml"
configuration file is set with a valid default template, a valid default context
and a valid default language.  The context root directory and template root
directory are set correctly.

Fedora Core 2
Chameleon beta 20041022
-----------
Request sent:

http://server/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&
LANGUAGES=en-CA&TEMPLATES=
------- Comment #1 From 2004-10-28 09:34:01 -------
Changed target to 1.99 Beta 3.
------- Comment #2 From 2004-10-28 11:50:21 -------
I get this error message.

Warning: file_get_contents(/ms4w/apps/chameleon/cwc2/templates/): failed to open
stream: Permission denied in F:\ms4w\apps\chameleon\htdocs\chameleon.php on line 609

I am assuming you didn't see this because you are logging errors?

In any case, I have modified cwc2.php to detect empty templates, including
TEMPLATES= and TEMPLATES=test.html, and to report appropriately.  I have also
modified chameleon.php to suppress PHP errors when loading templates and to
detect an invalid template and report it through the error manager.  cwc2.php
will now detect an invalid template in the URL by checking the error manager and
return value from CWCExecute and will report all the errors on the error stack.
------- Comment #3 From 2004-10-28 12:31:34 -------
Yes, I'm loging the error.  But I have error windows opened:  PHP, Apache and
JS.  I just checked it again and I got no PHP error.
------- Comment #4 From 2004-11-01 16:53:07 -------
how was this bug fixed?
------- Comment #5 From 2004-11-01 19:28:59 -------
please read comment #2 more carefully.
------- Comment #6 From 2004-11-01 20:10:03 -------
Verified on Fedora Core 2.
------- Comment #7 From 2004-11-03 08:35:06 -------
Chris needs to close this bug.
------- Comment #8 From 2004-11-03 13:49:38 -------
verified on widows. see error messages.

setting to close