Skip to content

[$75] Tasks: Access issue on challenge details page #257

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 Aug 4, 2020 · 12 comments
Closed

[$75] Tasks: Access issue on challenge details page #257

SathyaJayabal opened this issue Aug 4, 2020 · 12 comments

Comments

@SathyaJayabal
Copy link
Collaborator

User is able to see a task assigned to them on the challenge listings page, But get the error "You don't have access to view this challenge" when accessing the challenge details page.

example:
user:picachui
https://beta-community-app.topcoder.com/challenges/4db7f854-5c74-41b9-a0f9-b1c03245cfa9
Screenshot 2020-08-04 at 6 53 42 PM

@rootelement
Copy link
Contributor

I believe this is fixed:
https://beta-community-app.topcoder.com/challenges/7db724d4-7cf6-4e99-a045-0472f253e3a5

The UUID got destroyed by the re-migration, but the tasks show up now. The issue was comparing a member ID as a Number to a String. Thomas fixed it in
cd8ba6b#diff-6bf820f045aeaa766c1cac9497c693f5R949

@SathyaJayabal
Copy link
Collaborator Author

@rootelement
Copy link
Contributor

@ThomasKranitsas Can you please test this?

In prod, with this cURL:

curl --location --request GET 'https://api.topcoder.com/v5/resources?challengeId=4096df0c-57eb-4035-a496-e1aaeb2338a9&roleId=732339e7-8e30-49d7-9198-cccf9451e221' \
--header 'Authorization: Bearer CHALLENGE_M2M' \
--data-raw ''

I'm seeing the picachui account attached:

[
    {
        "legacyId": 1916645,
        "created": "2020-07-15T04:35:34Z",
        "createdBy": "jaya.dhaka",
        "updated": "2020-07-15T04:36:48Z",
        "updatedBy": "picachui",
        "memberId": "22778049",
        "memberHandle": "picachui",
        "challengeId": "4096df0c-57eb-4035-a496-e1aaeb2338a9",
        "roleId": "732339e7-8e30-49d7-9198-cccf9451e221",
        "id": "f886ce18-1ee7-4fc5-9fef-68adf309e966",
        "rating": 1036
    }
]

@SathyaJayabal
Copy link
Collaborator Author

@rootelement @ThomasKranitsas , so I can see tasks on my listings page, but i get the error only when I click on it and access the details page.

@ThomasKranitsas
Copy link
Contributor

@rootelement fixed in:

It worked fine on dev. Currently deploying on prod.

@ThomasKranitsas
Copy link
Contributor

Another fix: #263

@ThomasKranitsas
Copy link
Contributor

one last fix: #264

@rootelement
Copy link
Contributor

@SathyaJayabal can you please retest this?

@SathyaJayabal
Copy link
Collaborator Author

@rootelement , verified, user can access the task challenge details page.

@rootelement rootelement reopened this Aug 10, 2020
@rootelement rootelement changed the title Tasks: Access issue on challenge details page [$75] Tasks: Access issue on challenge details page Aug 10, 2020
@rootelement
Copy link
Contributor

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

This is an automated message for jcori via Topcoder X

@rootelement
Copy link
Contributor

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

This is an automated message for jcori via Topcoder X

@rootelement
Copy link
Contributor

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

This is an automated message for jcori 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

3 participants