Skip to content

User can register to a challenge before "Registration" phase begin #6784

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

Open
nursoltan-s opened this issue Jan 13, 2023 · 0 comments
Open
Assignees

Comments

@nursoltan-s
Copy link
Collaborator

Describe the bug
When Topcoder releases challenge and it is not yet started, but visible on "All challenges" tab. Registration button is disabled on UI. However, user can still register to this challenge via API and access to forum and private description etc. I think this will not be fair for others who don't know this method and needs to be fixed.

To Reproduce
Steps to reproduce the behavior:
0. Login to your account.

  1. Go to https://qa-community-app.topcoder-dev.com/challenges/6b06a3c6-15d2-410d-8a50-d76ceea8aea3 or any stalled challenge
  2. Copy your bearer token. (Open developer tool and go to network tab. You can see your bearer token there.)
  3. Send below request via curl:
curl --location --request POST 'api.topcoder.com/v5/resources' \
--header 'Authorization: Bearer.<Insert Token here>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "challengeId": "<INSERT CHALLENGE ID>",
    "memberHandle": "<YOUR HANDLE>",
    "roleId": "732339e7-8e30-49d7-9198-cccf9451e221"
}'
  1. See user can register to a challenge without problem.

Expected behavior
API should return error when challenge's registration phase is not started.

@rakibansary rakibansary self-assigned this Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants