To test your website, go to: https://wwwtest.student.cs.uwaterloo.ca/~cs135/ (replace with your course)
Be careful that some links may remove the wwwtest, depending on how your web site is set up.
Static files (HTML, CSS, JavaScript, PDFs, images) should all work without change.
On linux.student.cs.uwaterloo.ca, the command 2to3-2.7 can help convert Python 2 code file to Python 3, for example:
Other changes:
with open(MARK_FILE, "r") as fObj: # ... use fObj here ...
# Replace this data = subprocess.Popen(['ldapsearch', '-LLLx', '-h', 'uwldap.uwaterloo.ca', '-b', 'dc=uwaterloo,dc=ca', 'uid=' + userId, 'cn'], stdout=subprocess.PIPE ).stdout.readlines() # With this data = subprocess.run(['ldapsearch', '-LLLx', '-H', 'ldap://uwldap.uwaterloo.ca', '-b', 'dc=uwaterloo,dc=ca', 'uid=' + userId, 'cn'], stdout=subprocess.PIPE ).stdout.decode().splitlines()
# Replace this ISCid = subprocess.Popen([CL_INFO_PATH, 'type', 'isc', 'userid'],stdout=subprocess.PIPE).stdout.readlines()[0].strip("\n") # With this ISCid = subprocess.run([CL_INFO_PATH, 'type', 'isc', 'userid'],stdout=subprocess.PIPE).stdout.decode().splitlines()[0].strip("\n")
Nick has asked Byron to test things out on new web server.
What scripts in public_html/cgi-bin are in use?
https://wwwtest.student.cs.uwaterloo.ca/~cs240/s24/ does not show properly because the deprecated each(...) PHP function is used in public_html/s24/shared.php
Info that might help: https://stackoverflow.com/questions/46492621/how-can-i-update-code-that-uses-the-deprecated-each-function
The public_html/cgi-bin/requestCompile.cgi, requestSubmitStatus.cgi, requestNumLates.cgi are in Perl and seem to work still.
Nick will email Nancy about George (https://student.cs.uwaterloo.ca/~se212/george/ask-george/).