Skip to content

[$45] Able to submit even without registering #102

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

Closed
LieutenantRoger opened this issue Nov 12, 2021 · 39 comments
Closed

[$45] Able to submit even without registering #102

LieutenantRoger opened this issue Nov 12, 2021 · 39 comments

Comments

@LieutenantRoger
Copy link
Collaborator

Summary:
Able to upload Submission for a challenge even without registering

Steps to Reproduce:

  1. Navigate to Some Challenge and Register.
  2. Right Click on Submit and Open in New Tab
  3. Now go back to the Challenge Details page and Unregister
  4. Now go to the other tab where Submission page is open
  5. Check if you are able to make the submission

Actual Result:
User is able to make submission even without registering

Expected Result:
User should not be let to make the submission since user is unregistered from the Challenge

Environment Details:
Devices(s):
PC
Operating System:
Windows 10
Browser and Version:
Chrome: 94.0.4606.81

image

image

@LieutenantRoger LieutenantRoger changed the title Able to submit even without registering [$45] Able to submit even without registering Nov 16, 2021
@LieutenantRoger
Copy link
Collaborator Author

Challenge https://www.topcoder.com/challenges/6a184130-5370-4cea-98ed-96829b22c969 has been created for this ticket.

This is an automated message for lieutenantroger via Topcoder X

@fikzzzy
Copy link
Contributor

fikzzzy commented Nov 17, 2021

@bug-bash-helper assign

@bug-bash-helper
Copy link

@fikzzzy ✅ you are now assigned to this issue and have 12 hours to complete it.

As soon as you are done, please, make a comment like below, including the link to the pull request:

@bug-bash-helper <link to PR> is ready for review

1 similar comment
@bug-bash-hunt-helper
Copy link

@fikzzzy ✅ you are now assigned to this issue and have 12 hours to complete it.

As soon as you are done, please, make a comment like below, including the link to the pull request:

@bug-bash-helper <link to PR> is ready for review

@fikzzzy
Copy link
Contributor

fikzzzy commented Nov 18, 2021

@bug-bash-helper unassign

@bug-bash-helper
Copy link

@fikzzzy ✅ you have been unassigned from this issue.

Now you may pick up another issue which is open for pickup if you like to.

1 similar comment
@bug-bash-hunt-helper
Copy link

@fikzzzy ✅ you have been unassigned from this issue.

Now you may pick up another issue which is open for pickup if you like to.

@ben-mathu
Copy link

@bug-bash-helper assign

@bug-bash-helper
Copy link

@ben-mathu ✅ you are now assigned to this issue and have 12 hours to complete it.

As soon as you are done, please, make a comment like below, including the link to the pull request:

@bug-bash-helper <link to PR> is ready for review

@bug-bash-hunt-helper
Copy link

@ben-mathu ✅ you are now assigned to this issue and have 12 hours to complete it.

As soon as you are done, please, make a comment like below, including the link to the pull request:

@bug-bash-helper <link to PR> is ready for review

@dprincecoder
Copy link

@bug-bash-helper assign

@bug-bash-helper
Copy link

@dprincecoder 🛑 this issue is not open for pick up.

You may only pickup issues which are included in this Bug Bash and open for pick up.
Such issues have open status and have labels CF and Open for Pickup.

1 similar comment
@bug-bash-hunt-helper
Copy link

@dprincecoder 🛑 this issue is not open for pick up.

You may only pickup issues which are included in this Bug Bash and open for pick up.
Such issues have open status and have labels CF and Open for Pickup.

@ben-mathu
Copy link

ben-mathu commented Nov 20, 2021

I cannot login using localhost:8080
I have tried to use the local.topcoder-dev.com, but I cannot see the top bar, navbar is hidden.Could someone help with this?

@flaming-cl
Copy link
Contributor

@bug-bash-helper pull request is ready for review

@bug-bash-hunt-helper
Copy link

@flaming-cl ✅ this issue is marked as Ready for Review.

Now you may pick up another issue which is open for pickup if you like to.

@LieutenantRoger
Copy link
Collaborator Author

  1. It's not a good idea to retrieve the challenge detail info one more time only to verify the member is regsitered in a challenge.

https://api.topcoder-dev.com/v5/resources?challengeId={challengeId}

I think you should relay on this API endpoint, which can get the resources of a challenge directly to see if the member has unregistered the challenge, so we avoid to reload challenge detail and other API data which we don't need.

@flaming-cl
Copy link
Contributor

Hi, thanks so much for your feedback.
The pull request is updated with the suggestions you've made.
@bug-bash-helper pr is ready for review

@bug-bash-hunt-helper
Copy link

@flaming-cl ✅ this issue is marked as Ready for Review.

Now you may pick up another issue which is open for pickup if you like to.

@LieutenantRoger
Copy link
Collaborator Author

Hmmm I don't think the new PR is correct.

You called the getChallenge this time right ? I believe it's a different endpoint with the resource API. So we should only need to call resource API to verify whether a member has registered a challenge or not.

@flaming-cl
Copy link
Contributor

@LieutenantRoger Sorry that I mistakenly thought "resources?challengeId={challengeId}" is for fetching the challenge resource. The API will just retrieve the registrants data. Thanks for explaining.

@flaming-cl
Copy link
Contributor

@bug-bash-helper pr is ready for review

@bug-bash-hunt-helper
Copy link

@flaming-cl ✅ this issue is marked as Ready for Review.

Now you may pick up another issue which is open for pickup if you like to.

@codejamtc
Copy link
Collaborator

codejamtc commented Nov 28, 2021

Fixed 🆗

bandicam.2021-11-28.13-06-39-142.mp4

@codejamtc
Copy link
Collaborator

Verified in Prod 🆗

bandicam.2021-11-29.17-40-40-451.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants