openlab-at-city-tech / webworkqa

WeBWorK integration for WordPress and BuddyPress
GNU General Public License v2.0
4 stars 2 forks source link

When asking question on WW as a student, problem doesn't load on WW Q&A site #192

Open bree-z opened 3 years ago

bree-z commented 3 years ago

Hi Boone (and @drdrew42 ?),

When I ask a question while logged into WeBWorK as a student, the problem doesn't load on the WeBWorK Q&A test site. If I log into WW as an instructor, the problem loads correctly. E.g.:

As student:

WW URL: http://146.111.135.122/webwork2/WW-Dev/Polynomials_-_Division/1/?effectiveUser=studentB&user=studentB&key=Sf0U1Hs5rzLw2VkKsSJ6jJQjNkr7G1IR WWQA URL: https://hardg.com/webwork/

As instructor:

WWURL : http://146.111.135.122/webwork2/WW-Dev/Polynomials_-_Division/1/?key=4iHbHuprD0r4GM11DmjDtY7qcf0Wepfw&user=instructor&effectiveUser=instructor WWQA: https://hardg.com/webwork/?post_data_key=webwork_post_data_35f376d2b6163f403aefffb45846f86e#:problemId=CUNY/CityTech/Precalculus/setPolynomial_Division/intro-long-division.pg

Thanks!

boonebgorges commented 3 years ago

@drdrew42 In the case of the student, the problem_id key in the POST payload is empty. This is what webworkqa uses to perform the redirect. Looks like this is something that needs a look on your end.

drdrew42 commented 3 years ago

sorry about that - I forgot that WW2 hasn't yet pulled my requested changes (for increasing the information sent by the ask for help button) into master. This should work now.

boonebgorges commented 3 years ago

Thanks @drdrew42 but I'm still seeing an empty problem_id when testing with that user. Here's the payload (problem_text truncated for length)

`

[webwork_user] => studentB [problemset] => Polynomials-_Division [problem_number] => 1 [problem_id] => [problem_text] => Githubissues.

  • Githubissues is a development platform for aggregating issues.