raccoongang / xblock-video

Universal Video XBlock with pluggable backend for many video hosting providers
GNU General Public License v3.0
5 stars 16 forks source link

Delete student state fails from Staff Debug Info #299

Closed bryanlandia closed 2 years ago

bryanlandia commented 6 years ago

Steps to Repro:

  1. Log in to LMS as Staff user
  2. Browse to Video XBlock instance
  3. Click Staff Debug Info
  4. Click "Delete Student State"

Expected result: Student state successfully deleted

Actual result: "Failed to delete student state for selected user. Unknown error occurred." and a 400 error in the Network Pane. Test server has * in ALLOWED_HOSTS.

screen shot 2018-01-26 at 4 43 10 pm

bryanlandia commented 6 years ago

Here are details from the request:

Request URL:https://lms.isc-intersystems-staging.customer.appsembler.com/courses/course-v1:InterSystems+LHB001+2017_7/instructor/api/reset_student_attempts
Request Method:POST
Status Code:400 BAD REQUEST
Remote Address:35.196.229.222:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Cache-Control:no-cache, no-store, must-revalidate
Connection:keep-alive
Content-Language:en
Content-Type:text/html; charset=utf-8
Date:Sat, 27 Jan 2018 00:43:01 GMT
Server:nginx
Set-Cookie:csrftoken=5WdFptFl5dY0z9Oxee8POF8q5CKsWg28; expires=Sat, 26-Jan-2019 00:43:01 GMT; Max-Age=31449600; Path=/
Set-Cookie:sessionid="1|w3r6bfdyzl1ey0z3jn04iwxtlsyo8aco|qU8gkxt8ioCF|IjFlNTZiMmFjMmJiYzEyYzliMjAzYmFlYmU3YmM5NDdjZjYzZDVjYzQzNWYwNzFlYWRjNTk2MzEzZTE2ZTVhZmYi:1efEaD:IdQn2taYMJTRZEdAHbWCkKkJ9wI"; httponly; Path=/
Transfer-Encoding:chunked
Vary:Cookie, Accept-Language
X-Frame-Options:ALLOW
Request Headers
view source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.9,es-419;q=0.8,es;q=0.7,fr;q=0.6,de;q=0.5
Cache-Control:no-cache
Connection:keep-alive
Content-Length:180
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:_ga=GA1.2.305065006.1476646610; __insp_uid=2475971789; messagesUtk=0d16611851cfc94837fbdca55be728d4; __hstc=74882125.0d16611851cfc94837fbdca55be728d4.1497394525510.1509148745694.1509650098941.9; __hssrc=1; hubspotutk=0d16611851cfc94837fbdca55be728d4; mp_e3624b97a9ff21dc19a2c8e1756c1f8e_mixpanel=%7B%22distinct_id%22%3A%20%2215e781aca664a1-032f2bf8b8ca64-31637e02-13c680-15e781aca67187%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D; csrftoken=5WdFptFl5dY0z9Oxee8POF8q5CKsWg28; edxloggedin=true; edx-user-info="{\"username\": \"bryanlandia\"\054 \"version\": 1\054 \"enrollmentStatusHash\": \"5562de283fce88f4959ae9180b1c4dcf\"\054 \"header_urls\": {\"learner_profile\": \"https://lms.isc-intersystems-staging.customer.appsembler.com/u/bryanlandia\"\054 \"logout\": \"https://lms.isc-intersystems-staging.customer.appsembler.com/logout\"\054 \"account_settings\": \"https://lms.isc-intersystems-staging.customer.appsembler.com/account/settings\"}}"; sessionid="1|w3r6bfdyzl1ey0z3jn04iwxtlsyo8aco|nkjFu3vWwY6A|IjFlNTZiMmFjMmJiYzEyYzliMjAzYmFlYmU3YmM5NDdjZjYzZDVjYzQzNWYwNzFlYWRjNTk2MzEzZTE2ZTVhZmYi:1efEZt:aGjEhRQcFudHx12mx2YA9kys_RY"
DNT:1
Host:lms.isc-intersystems-staging.customer.appsembler.com
Origin:https://lms.isc-intersystems-staging.customer.appsembler.com
Pragma:no-cache
Referer:https://lms.isc-intersystems-staging.customer.appsembler.com/courses/course-v1:InterSystems+LHB001+2017_7/courseware/3a192cd901dd493d913f764d6dcfa212/7a9665b4ce2a447988d02d530b235cb9/1?activate_block_id=block-v1%3AInterSystems%2BLHB001%2B2017_7%2Btype%40vertical%2Bblock%40232119f48dec4a2d85552e2d6b33f122
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
X-CSRFToken:5WdFptFl5dY0z9Oxee8POF8q5CKsWg28
X-Requested-With:XMLHttpRequest
Form Data
view parsed
problem_to_reset=block-v1%3AInterSystems%2BLHB001%2B2017_7%2Btype%40video_xblock%2Bblock%409f1908a430734bd4944aee893995aa5a&unique_student_identifier=bryanlandia&delete_module=true