Skip to content

[$50] Getting error on submission for private challenges #4628

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
SathyaJayabal opened this issue Jul 6, 2020 · 21 comments
Closed

[$50] Getting error on submission for private challenges #4628

SathyaJayabal opened this issue Jul 6, 2020 · 21 comments

Comments

@SathyaJayabal
Copy link
Collaborator

SathyaJayabal commented Jul 6, 2020

https://beta-community-app.topcoder.com/challenges/d9b51702-711f-4ee4-93ab-5af4271e83f3/submit
user: CustomerUser/appirio123

Same user is able to submit for other challenges. Other users are able to submit to this challenge. This issues is observed with the specific user for this specific challenge.
example: Customer user was able to submit to "https://beta-community-app.topcoder.com/challenges/0e19815e-fb7e-4a8c-bb52-6e5c6c101818" without error
User "lakshmiathreya" was able to submit to the above challenge without error.

Screenshot 2020-07-06 at 3 02 49 PM

@SathyaJayabal
Copy link
Collaborator Author

@SathyaJayabal
Copy link
Collaborator Author

cc @luizrrodrigues

@SathyaJayabal SathyaJayabal changed the title Getting error on submission for some users Getting error on submission for some cases Jul 6, 2020
@SathyaJayabal SathyaJayabal changed the title Getting error on submission for some cases Getting error on submission for private challenges Jul 13, 2020
@SathyaJayabal SathyaJayabal added P0 Critical (resolve within 4 hours) and removed P2 Important (resolve within 3 days) labels Jul 13, 2020
@SathyaJayabal
Copy link
Collaborator Author

@mtwomey @lakshmiathreya @sushilshinde
Raising priority as users will be blocked from submitting to any challenge belonging to a group.

@mtwomey
Copy link
Contributor

mtwomey commented Jul 14, 2020

@sushilshinde had you said you were working with Mithun?

@sushilshinde
Copy link
Collaborator

Yes, tagged you on conversation with him

@mtwomey
Copy link
Contributor

mtwomey commented Jul 14, 2020

@mtwomey
Copy link
Contributor

mtwomey commented Jul 14, 2020

So this works with user tokens but not M2M tokens, is that the case? For example, this doesn't return anything with an active / current M2M:

curl --location --request GET 'https://api.topcoder.com/v5/submissions?challengeId=2ce9c4cb-b4ce-4aa5-9807-d3f655860732' \
--header 'Authorization: Bearer '[M2M TOKEN]'

@callmekatootie
Copy link
Collaborator

@mtwomey Did I understand that right? You are able to access the submissions for the contest with id 2ce9c4cb-b4ce-4aa5-9807-d3f655860732 with user token but not with m2m token? If yes, could you kindly give more info here

  1. Do you get back an empty array or an error when using m2m tokens? If an error, could you kindly share the error message.
  2. What are the scopes on your m2m token?

This may or may not be related to the current issue.

@sushilshinde Could we get another test data. I am no longer able to access the one originally referred to in this ticket - it says contest does not exist / not found. Also, now that I see it, the description in the ticket says only that one user is not able to submit, others can. Can you confirm that this is indeed the scenario? From my analysis, every user should face the issue and not just that one... If there is another user that can submit, could you share the login creds for that user too...

The update currently is that all signs indicate something's up with the v4 challenge api and not the submission api. Currently discussing with Chris and James on the way forward.

@sushilshinde
Copy link
Collaborator

@SathyaJayabal please share another example

@mtwomey
Copy link
Contributor

mtwomey commented Jul 15, 2020

@callmekatootie Hold one moment, @SathyaJayabal is going to get us an other test data set. It's possible I wasn't looking at it quite right.

@SathyaJayabal
Copy link
Collaborator Author

@callmekatootie, we can use the same challenge (we have new UUID due to data migration)

https://beta-community-app.topcoder.com/challenges/0ea10b6f-c089-457b-8c08-b01be006b25e
https://www.topcoder.com/challenges/30131098

User for whom we get the error:
CustomerUser/appirio123
User role: Topcoder User

User for whom we do NOT get the error:
lakshmiathreya
User role: Admin

@mtwomey @callmekatootie , unfortunately we cannot replicate this issue now from the front end because of
#4648
Even though the user is registered to the challenge, submit button is not active. Not able to access the submit page directly through the url too
https://beta-community-app.topcoder.com/challenges/0ea10b6f-c089-457b-8c08-b01be006b25e/submit

Screenshot 2020-07-15 at 10 04 21 AM

@SathyaJayabal
Copy link
Collaborator Author

verified on beta
Screenshot 2020-07-16 at 9 58 13 AM

@SathyaJayabal
Copy link
Collaborator Author

@rootelement @mtwomey @lakshmiathreya, user is able to submit for the challenge belonging to a the test group. As James said in the call, the submissions api accesses the challenge using the tcwebservice. The tcwebservice is added as a member to the test group.

Will tcwebservice be a default member to any group? How do we make sure of that?
Screenshot 2020-07-16 at 10 10 08 AM

@rootelement
Copy link
Contributor

cc @cwdcwd ?

@SathyaJayabal SathyaJayabal added Need clarification Need clarification to proceed fixing the issue further and removed QA Pass labels Jul 16, 2020
@rootelement
Copy link
Contributor

rootelement commented Jul 16, 2020

According to @cwdcwd, when a group gets created, Support has been fielding adding tcwebservice user to that group. So for any groups you've created for testing, please add that user to that group.

This problem goes away when we move submission api v5 completely over to challenge v5.

Keep in mind that this could actually throw off the group counts in v4 vs. v5 that we were talking about yesterday.

cc: @mtwomey

@SathyaJayabal SathyaJayabal added QA Pass and removed Need clarification Need clarification to proceed fixing the issue further labels Jul 16, 2020
@callmekatootie
Copy link
Collaborator

Does this mean that the ticket in submission api gets closed as well? Is the issue resolved?

@SathyaJayabal
Copy link
Collaborator Author

@callmekatootie yes right, I will close it right away.

@rootelement
Copy link
Contributor

Reopening this to pay Mithun for his time researching.

@rootelement rootelement reopened this Jul 16, 2020
@rootelement rootelement changed the title Getting error on submission for private challenges [$50] Getting error on submission for private challenges Jul 16, 2020
@crazyk07
Copy link

Contest https://www.topcoder.com/challenges/30133195 has been created for this ticket.

This is an automated message for crazyk via Topcoder X

@crazyk07
Copy link

Contest https://www.topcoder.com/challenges/30133195 has been updated - it has been assigned to callmekatootie.

This is an automated message for crazyk via Topcoder X

@crazyk07
Copy link

Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30133195

This is an automated message for crazyk via Topcoder X

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