Closed boonebgorges closed 6 years ago
let us know when/if this needs testing
Ran out of time for this one. It's extremely difficult to debug.
I've determined that this is a more general Safari problem, affecting both iOS and OSX. WP is never receiving a POST request to begin with, which, at least on the dev site, is a regression from #79.
I have a suspicion that it's a problem only for our dev site, because of the way that Safari handles form submissions that contain HTTP authentication. @drdrew42 - questions for you:
@drdrew42 - thanks for sending the credentials! I can now confirm that the POST/GET problem is specific to the dev server (so no problem with #79 on production) but the URL fragment is still being lost. This gives me enough info to debug.
@drdrew42 - thanks for sending the credentials! I can now confirm that the POST/GET problem is specific to the dev server (so no problem with #79 on production) but the URL fragment is still being lost.
I just put in place a kinda insane but, apparently, working fix. Here's the high-level rundown:
problemId
info is included in the redirect_to
parameter, the problemId
is stored in a cookieproblemId
cookie is detected, then (a) that cookie is deleted (so the redirect happens just once), and (b) you're redirected to the correct problemId
URL.It's not currently possible to test this on openlabdev.org because of the weird behavior of HTTP auth + redirects/form submits + Safari.
However, I've monkey-patched the production server for the purposes of testing, and since it works, I'm going to leave it in place. @bree-z and @moui72 - the testing process here is, on Safari (mobile or otherwise):
?redirect_to
parameter that includes the string problemId
as well as a lot of other stuff. If you see a shorter redirect_to
, something else has gone wrong, and you may want to try a different source problem on WW (Safari is extremely finicky)@drdrew42 could you please send creds (and URL, just to be sure I'm testing the right thing) to work@bree.bz?
thanks!
I believe the course you're looking for is http://mathww.citytech.cuny.edu/webwork2/MAT1275/
I'll email the credentials.
Thanks @drdrew42!
I think this is working for me. I went to the site above in Safari, and after clicking 'Ask for Help' the login page opened with following URL:
After logging in, I was on the correct problem (ReducingRationalExpressions: Problem 1), with this URL:
I also appear to have a webwork-problem-id cookie.
If this sounds good I think we can close this. Thanks!
Yes, this sounds good. Thanks for verifying, @bree-z !
See #79. That ticket fixed the issue authenticated POSTs, but not for those that need to go through wp-login.php. I'll need to build some sort of JS-based replacement for wp-login's
redirect_to
behavior.