Issue Details (XML | Word | Printable)

Key: MDL-11061
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Patrick Fitchie
Votes: 5
Watchers: 15
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

SSL Publishing a Moodle site with ISA Server and no SSL Bridging (Browser--ssl--> ISA Server --nonssl --> Moodle) breaks Quiz View

Created: 30/Aug/07 05:19 AM   Updated: 08/Aug/09 05:37 AM
Return to search
Component/s: Lib
Affects Version/s: 1.8.2
Fix Version/s: 2.0

File Attachments: 1. Text File ssl_proxy_hack.patch (2 kB)
2. Text File weblib.patch (2 kB)

Environment:
Moodle Server --> Windows 2003 running latest XAMPP moodle 1.8.2+ package
ISA Server --> Windows 2003 R2 running ISA Server 2006

ISA Server acting as a reverse proxy from the internet to the internal moodle server
ISA Server connecting with clients using SSL
ISA Server connecting with moodle server not using SSL
Issue Links:
Duplicate
 
Relates
 

Participants: Andrea Bicciolo, Ben Frueh, Dakota Duff, Dan Poltawski, Francois Marier, Greg Lund-Chaix, Holly Rae Bemis-Schurtz, Ivan Chavero, Jason Meinzer, John Jeuken, Matt Oquist, Mike Street, Patrick Fitchie, Petr Skoda and Tim Hunt
Security Level: None
Resolved date: 07/Jan/09
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
I'll try to describe my config as best as possible.

-When a browser connects to https://my.org/moodle ISA Server retreives pages from the internal site known to it as http://my.org/moodle
-cfg$-->wwwroot =https://my.org/moodle
-Moodle in general works great under this configuration
-You can create quizzes and add questions, however once questions are added and you try to preview the quiz you receive the following error:

/* begin error */
Page class mapping requested for unknown type: http:--webmail.brsd.ab.ca-moodle-mod-quiz-view line 100 of lib\pagelib.php:

call to debugging() line 65 of lib\pagelib.php:
call to page_map_class() line 50 of lib\pagelib.php:
call to page_create_object() line 51 of mod\quiz\view.php:
call to page_create_instance()

Notice: Undefined index: http:--webmail.brsd.ab.ca-moodle-mod-quiz-view in C:\moodle\wwwroot\moodle\lib\pagelib.php on line 103
Notice: Undefined index: http:--webmail.brsd.ab.ca-moodle-mod-quiz-view in C:\moodle\wwwroot\moodle\lib\pagelib.php on line 104

Page class mapping for id "http:--webmail.brsd.ab.ca-moodle-mod-quiz-view" exists but class "" is not defined line 104 of lib\pagelib.php:

call to debugging() line 65 of lib\pagelib.php:
call to page_map_class() line 50 of lib\pagelib.php:
call to page_create_object() line 51 of mod\quiz\view.php:
call to page_create_instance()

Notice: Undefined index: http:--webmail.brsd.ab.ca-moodle-mod-quiz-view in C:\moodle\wwwroot\moodle\lib\pagelib.php on line 107

Fatal error: Class name must be a valid object or a string in C:\moodle\wwwroot\moodle\lib\pagelib.php on line 67

/* end error */

Workarounds:
1. Disable ISA SSL connection for the external https://my.org/moodle (not desirably since we want all traffic encrypted) and change cfg$-->wwwroot=http://my.org/moodle
2. Enable SSL Bridging in ISA so that ISA retreives https://my.org/moodle (not desirable as is puts ssl load on moodle server), this is a little more difficult because you need to export the ssl cert from apache and then import it into the Trusted Certificate Store on the ISA Server. this can be done by using the following command: bin/openssl pkcs12 -export -in server.crt -inkey server.key -out server.p12 (of course adjusting the command line to point to correct paths of the files.

The problem I beleive lies in the pagelib.php as it does not seems to be construting the pagetype correctly for quiz view in this environment but it does appear to do it properly for other pagetypes since I can not reproduce the problem in any other module.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt made changes - 29/Sep/07 11:23 PM
Field Original Value New Value
Component/s Quiz [ 10059 ]
Tim Hunt made changes - 18/Oct/07 04:09 AM
Link This issue is duplicated by MDL-9029 [ MDL-9029 ]
Tim Hunt made changes - 19/Oct/07 04:23 PM
Link This issue is duplicated by MDL-11833 [ MDL-11833 ]
Ivan Chavero made changes - 13/Aug/08 06:51 AM
Attachment weblib.patch [ 14813 ]
Francois Marier made changes - 23/Sep/08 12:35 PM
Attachment ssl_proxy_hack.patch [ 15214 ]
Tim Hunt made changes - 21/Oct/08 01:22 PM
Link This issue is duplicated by MDL-16932 [ MDL-16932 ]
Petr Skoda made changes - 06/Jan/09 06:28 AM
Assignee Martin Dougiamas [ dougiamas ] Petr ?koda [ skodak ]
Petr Skoda made changes - 06/Jan/09 06:28 AM
Fix Version/s 2.0 [ 10122 ]
Petr Skoda made changes - 06/Jan/09 06:31 AM
Link This issue has been marked as being related by MDL-17754 [ MDL-17754 ]
Petr Skoda made changes - 06/Jan/09 06:39 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Andrea Bicciolo made changes - 07/Jan/09 08:45 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Dan Poltawski made changes - 07/Jan/09 11:09 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]