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
tjhunt committed 3 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 18/Oct/07 04:20 AM
MDL-11061 - admin notifications about $CFG->wwwroot, which sometimes lead to obscure errors.
MODIFY admin/index.php   Rev. 1.286.2.1    (+8 -1 lines)
MODIFY lang/en_utf8/admin.php   Rev. 1.154.2.2    (+2 -0 lines)
MODIFY lib/weblib.php   Rev. 1.970.2.8    (+5 -2 lines)
tjhunt committed 3 files to 'Moodle CVS' - 18/Oct/07 04:21 AM
MDL-11061 - admin notifications about $CFG->wwwroot, which sometimes lead to obscure errors. Merged from MOODLE_19_STABLE.
MODIFY lang/en_utf8/admin.php   Rev. 1.156    (+2 -0 lines)
MODIFY lib/weblib.php   Rev. 1.978    (+5 -2 lines)
MODIFY admin/index.php   Rev. 1.287    (+8 -1 lines)
Mitsuhiro Yoshida committed 3 files to 'Lang CVS' - 18/Oct/07 11:03 PM
Translated new strings for admin MDL-11061.
Translated new strings for group.
MODIFY ja_utf8/README   Rev. 1.545    (+1 -1 lines)
MODIFY ja_utf8/group.php   Rev. 1.23    (+3 -1 lines)
MODIFY ja_utf8/admin.php   Rev. 1.204    (+3 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 21/Oct/07 05:22 PM
MDL-11061 - admin notifications about $CFG->wwwroot, which sometimes lead to obscure errors.
MODIFY fr_utf8/admin.php   Rev. 1.200    (+3 -1 lines)
tjhunt committed 3 files to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 23/Apr/08 06:38 PM
MDL-11978 - Backport admin notification from MDL-11061 about bogus $CFG->wwwroot from 1.9 to 1.8 and 1.7.
MODIFY lib/weblib.php   Rev. 1.812.2.103    (+5 -2 lines)
MODIFY lang/en_utf8/admin.php   Rev. 1.103.2.21    (+3 -1 lines)
MODIFY admin/index.php   Rev. 1.265.2.13    (+9 -2 lines)
tjhunt committed 3 files to 'Moodle CVS' on branch 'MOODLE_17_STABLE' - 23/Apr/08 06:38 PM
MDL-11978 - Backport admin notification from MDL-11061 about bogus $CFG->wwwroot from 1.9 to 1.8 and 1.7.
MODIFY admin/index.php   Rev. 1.243.2.9    (+8 -1 lines)
MODIFY lang/en_utf8/admin.php   Rev. 1.55.2.26    (+3 -1 lines)
MODIFY lib/weblib.php   Rev. 1.674.2.34    (+5 -2 lines)
Petr Skoda committed 29 files to 'Moodle CVS' - 06/Jan/09 06:37 AM
MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support
MODIFY filter/algebra/pix.php   Rev. 1.24    (+2 -2 lines)
MODIFY pluginfile.php   Rev. 1.6    (+2 -2 lines)
ADD user/grouppix.php   Rev. 1.1    (+0 -0 lines)
MODIFY mod/choice/lib.php   Rev. 1.95    (+3 -3 lines)
MODIFY lib/setuplib.php   Rev. 1.39    (+103 -2 lines)
MODIFY lib/setup.php   Rev. 1.259    (+10 -8 lines)
MODIFY draftfile.php   Rev. 1.8    (+2 -2 lines)
MODIFY file.php   Rev. 1.56    (+2 -2 lines)
MODIFY install.php   Rev. 1.112    (+2 -2 lines)
MODIFY lib/portfolio/exceptions.php   Rev. 1.4    (+3 -1 lines)
MODIFY lib/flickrlib.php   Rev. 1.5    (+3 -2 lines)
MODIFY lib/weblib.php   Rev. 1.1198    (+24 -161 lines)
MODIFY lib/sessionlib.php   Rev. 1.16    (+2 -5 lines)
MODIFY lib/installlib.php   Rev. 1.8    (+25 -1 lines)
MODIFY mod/scorm/report.php   Rev. 1.58    (+2 -2 lines)
MODIFY lang/en_utf8/error.php   Rev. 1.152    (+4 -1 lines)
MODIFY question/exportfile.php   Rev. 1.4    (+1 -1 lines)
MODIFY course/report/participation/index.php   Rev. 1.29    (+2 -2 lines)
MODIFY admin/cron.php   Rev. 1.157    (+3 -4 lines)
MODIFY rss/file.php   Rev. 1.24    (+2 -2 lines)
MODIFY lib/filelib.php   Rev. 1.118    (+2 -2 lines)
MODIFY user/pix.php   Rev. 1.21    (+2 -2 lines)
MODIFY blocks/tags/block_tags.php   Rev. 1.14    (+3 -3 lines)
DEL user/Attic/pixgroup.php   Rev. 1.10    (+0 -0 lines)
MODIFY userfile.php   Rev. 1.8    (+2 -2 lines)
MODIFY blog/lib.php   Rev. 1.102    (+2 -2 lines)
MODIFY config-dist.php   Rev. 1.111    (+11 -1 lines)
MODIFY filter/tex/pix.php   Rev. 1.34    (+2 -2 lines)
MODIFY question/file.php   Rev. 1.9    (+1 -1 lines)
Dan Poltawski committed 1 file to 'Moodle CVS' - 07/Jan/09 11:08 PM
admin interface: MDL-11061 Incorrect check check on wwwroot causing invalid
admin warning
MODIFY admin/index.php   Rev. 1.345    (+2 -2 lines)
Petr Skoda committed 3 files to 'Moodle CVS' - 08/Jan/09 12:31 AM
MDL-11061 removed wwwroot tests from admin/index.php, now in setuplib.php
MODIFY lib/setuplib.php   Rev. 1.44    (+5 -1 lines)
MODIFY lang/en_utf8/error.php   Rev. 1.154    (+2 -1 lines)
MODIFY admin/index.php   Rev. 1.346    (+1 -8 lines)
Mitsuhiro Yoshida committed 4 files to 'Lang CVS' - 08/Jan/09 02:42 PM
MDL-11061 Translated a new string for error messages.
Updated a translated help file for feedback based on lang/en_utf8 XHTML strict.
MDL-3156 Adding a translated help file for quiz.
MDL-3156 Translated new strings for quiz.
MODIFY ja_utf8/quiz.php   Rev. 1.169    (+3 -1 lines)
ADD ja_utf8/help/quiz/showuserpicture.html   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/error.php   Rev. 1.114    (+2 -1 lines)
MODIFY ja_utf8/help/feedback/mods.html   Rev. 1.4    (+1 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 11/Jan/09 05:33 PM
MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787: new strings added
MODIFY fr_utf8/error.php   Rev. 1.156    (+4 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 11/Jan/09 05:54 PM
MDL-11061 String translated
MODIFY fr_utf8/error.php   Rev. 1.158    (+2 -1 lines)