MapTools.org

[Chameleon-dev] [Bug 142] New: [Chameleon] invalid context path with error description issues

bugzilla-daemon@www.maptools.org bugzilla-daemon@www.maptools.org
Tue, 25 Nov 2003 14:21:28 -0500
http://www.maptools.org/bugzilla/show_bug.cgi?id=142

           Summary: [Chameleon] invalid context path with error description
                    issues
           Product: Chameleon
           Version: 1.0
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev@lists.maptools.org
        ReportedBy: thorne@dmsolutions.ca


Darren's comment:(Issue found during cwc2 course)
> 1. If the location provided in the URL for your context is invalid, you 
> get PHP errors displayed on the resulting page. This shouldn't happen - 
> some higher-level error should be given.
> 
Chris's comment:
I have been unable to reproduce this using the sample template in
cwc2/htdocs/test.html with Chameleon 1.0.3. But I was able to produce an error
using the course templates.

Service Instance used (where the context path is wrong):

http://localhost/cwc2/cwc2.php?
template=http://localhost/msapps/cwc2_coarse/cwc2_cmaterial2/
tutorial_template_5_1.html
&context=http://localhost/msapps/cwc2ogc_demo/ogc_context.xml

The error received on the template:

Warning: file(http://localhost/msapps/cwc2ogc_demo/ogc_context.xml): failed to
open stream: HTTP request failed! HTTP/1.1 404 Not Found in
C:\ms4w\apps\cwc2\htdocs\cwc2.php on line 498

The error received in the ErrorReport:

    * (c:/ms4w/tmp/sess_3fc384f15dea5\con56.tmp.xml)
    * Unable to read c:/ms4w/tmp/sess_3fc384f15dea5\con56.tmp.xml
    * ERROR: Invalid context file.


If the context file is invalid, is this the appropriate response by chameleon?

This I find strange since the course template contains the following ErrorReport
Widget. Should the above error be placed in the Error Popup?

        <CWC2 TYPE="ErrorReport" Visible="true" PopupWidth="500"
PopupHeight="400" Toolbar="false" Status="false" Menubar="false"
Image="images/icon_error.png" ImageWidth="18" ImageHeight="18" ImageTip="Display
Error Report" Label="Error Report"/>

However, if the user has added the error reporter widget than the errors will be
displayed there. Is it possible to suppress the php error when it is clearly
displayed using the ErrorReport widget? So, if the ErrorReport widget is NOT
present the php errors will have to be displayed....

Any thoughts? I also realize from a previous bug that the ErrorReporter has a
delayed reaction and often the error does not show up until the user interacts
with the app. This will cause confusion, and is probably why the php error are
helpful to have anyways.

Either way the php error display may not be worded correctly for the simple user
of chameleon.

The display of php error is directly related to their php.ini error loging
setings. This would be either controlled by administrator of the web server.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


This archive was generated by Pipermail.