Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test failure] <TC_AUTHOR_146>: Can't request a Course creator role in Studio #379

Open
cmltaWt0 opened this issue Jun 5, 2024 · 4 comments
Labels
redwood release testing Affects the upcoming release (attention needed)
Milestone

Comments

@cmltaWt0
Copy link

cmltaWt0 commented Jun 5, 2024

Release

Redwood

Expected behavior

Request to became a Course creator is sent, an appropriate message is displayed

Actual behavior

I get an error Sorry, there was error with you request.
Console logs:

home:1 Access to XMLHttpRequest at 'https://redwood.demo.edly.io/oauth2/authorize?client_id=cms-sso&redirect_uri=https%3A%2F%2Fstudio.redwood.demo.edly.io%2Fcomplete%2Fedx-oauth2%2F%3Fredirect_state%3DnWpdAjq4Qqrjji7z9koTja6UvhjoviKz&state=nWpdAjq4Qqrjji7z9koTja6UvhjoviKz&response_type=code&scope=user_id+profile+email' (redirected from 'https://studio.redwood.demo.edly.io/request_course_creator') from origin 'https://apps.redwood.demo.edly.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' 
header is present on the requested resource.
Screenshot 2024-06-05 at 15 25 26

Steps to reproduce

  1. Register a new User
  2. Open Studio https://apps.redwood.demo.edly.io/course-authoring/home
  3. Click on Becoming a course creator in Studio area below the text Are you staff on an existing Studio course? The course creator must give you access to the course. Contact the course creator or administrator for the course you are helping to author.
  4. Click on Request the abillity to create courses button.

Additional information

The user was activated manually via admin panel.

@cmltaWt0 cmltaWt0 added release testing Affects the upcoming release (attention needed) needs triage labels Jun 5, 2024
@mariajgrimaldi
Copy link
Member

mariajgrimaldi commented Jun 6, 2024

Thanks for the report! I followed the instructions to reproduce the issue but couldn't.

Screencast.from.05-06-24.23.12.51.webm

Could you try again, please?

@cmltaWt0
Copy link
Author

cmltaWt0 commented Jun 6, 2024

It doesn't work for me yet.

Screen.Recording.2024-06-06.at.11.41.19.mov

But it works for our QA...

@cmltaWt0
Copy link
Author

cmltaWt0 commented Jun 6, 2024

@mariajgrimaldi We've found the root-cause! (thanks @dyudyunov !)
I'm opening the https://apps.redwood.demo.edly.io/course-authoring/home directly w/o opening the https://studio.redwood.demo.edly.io in the first place.
In this case the MFE doing the request for oauth2 to login into the studio and failed because of CORS.
When I'm opening the Studio MFE from studio.redwood.demo.edly.io I became a logged in user and the login flow from MFE is not triggered.

@mariajgrimaldi
Copy link
Member

@cmltaWt0 @dyudyunov: thank you both for the insight! I'm not sure if this is the intended behavior, so I opened an issue in the Course Authoring MFE to alert maintainers.

@mariajgrimaldi mariajgrimaldi added this to the Redwood.3 milestone Sep 14, 2024
@mariajgrimaldi mariajgrimaldi changed the title [Test failure] <No testcase>: Can't request a Course creator role in Studio [Test failure] <TC_AUTHOR_146>: Can't request a Course creator role in Studio Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redwood release testing Affects the upcoming release (attention needed)
Projects
Status: No status
Development

No branches or pull requests

2 participants