Skip to content

fix: Original object not retrieved when user logs in with third party auth - #7742

Open
Meglali20 wants to merge 52 commits into
parse-community:alphafrom
Meglali20:aftersave-auth-user
Open

Meglali20 wants to merge 52 commits into
parse-community:alphafrom
Meglali20:aftersave-auth-user

Conversation

@Meglali20

Copy link
Copy Markdown
Contributor

New Pull Request Checklist

Issue Description

Related issue: issue#7737

Approach

TODOs before merging

  • Add tests
  • Add changes to documentation (guides, repository pages, in-code descriptions)
  • Add security check
  • Add new Parse Error codes to Parse JS SDK
  • A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)

@parse-github-assistant

parse-github-assistant Bot commented Dec 16, 2021 •

Copy link
Copy Markdown

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

@Meglali20 Meglali20 changed the title Fail test: Original object not being retrieved when users log in with third party auth <type>: <test> Fail test: Original object not being retrieved when users log in with third party auth Dec 16, 2021
@Meglali20 Meglali20 changed the title <type>: <test> Fail test: Original object not being retrieved when users log in with third party auth Fail test: Original object not being retrieved when users log in with third party auth Dec 16, 2021
@Meglali20 Meglali20 changed the title Fail test: Original object not being retrieved when users log in with third party auth test: Original object not being retrieved when users log in with third party auth Dec 16, 2021
@parse-github-assistant

Copy link
Copy Markdown

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant Bot changed the title test: Original object not being retrieved when users log in with third party auth test: original object not being retrieved when users log in with third party auth Dec 16, 2021
@mtrezza mtrezza changed the title test: original object not being retrieved when users log in with third party auth fix: original object not being retrieved when user logs in with third party auth Dec 16, 2021
@parse-community parse-community locked and limited conversation to collaborators Dec 16, 2021
@parse-community parse-community unlocked this conversation Dec 16, 2021
@mtrezza mtrezza changed the title fix: original object not being retrieved when user logs in with third party auth fix: original object not retrieved when user logs in with third party auth Dec 16, 2021
Comment thread spec/ParseUser.spec.js Resolved
Comment thread spec/ParseUser.spec.js Resolved
Comment thread spec/ParseUser.spec.js Resolved
Comment thread spec/ParseUser.spec.js Resolved
Comment thread spec/ParseUser.spec.js Resolved
mtrezza and others added 13 commits January 27, 2022 22:44
## [5.2.1-alpha.1](parse-community/parse-server@5.2.0...5.2.1-alpha.1) (2022-03-26)

### Bug Fixes

* return correct response when revert is used in beforeSave ([parse-community#7839](parse-community#7839)) ([f63fb2b](parse-community@f63fb2b))
## [5.2.1-alpha.2](parse-community/parse-server@5.2.1-alpha.1...5.2.1-alpha.2) (2022-03-26)

### Performance Improvements

* reduce database operations when using the constant parameter in Cloud Function validation ([parse-community#7892](parse-community#7892)) ([48bd512](parse-community@48bd512))
# [5.3.0-alpha.2](parse-community/parse-server@5.3.0-alpha.1...5.3.0-alpha.2) (2022-03-27)

### Bug Fixes

* security upgrade parse push adapter from 4.1.0 to 4.1.2 ([parse-community#7893](parse-community#7893)) ([ef56e98](parse-community@ef56e98))
@mtrezza

mtrezza commented Apr 25, 2022

Copy link
Copy Markdown
Member

Thanks for simplifying the test, it looks good to me. Do you have a suggestion for a fix?

@Meglali20

Copy link
Copy Markdown
Contributor Author

Unfortunately, I have no idea about it since it hasn't been long since I discovered and started using parse so I am not completely familiar with it and didn't look at the code yet. There could be some workaround to avoid this issue but that would be just adding unnecessary extra data to the database. you should be updating the label of the issue so that maybe someone can take a look at it and propose a solution.

@mtrezza
mtrezza force-pushed the alpha branch 2 times, most recently from 59215e6 to e6d7d8f Compare May 1, 2022 02:29
@Meglali20

Copy link
Copy Markdown
Contributor Author

@mtrezza any update?

@mtrezza

mtrezza commented Jun 6, 2022 •

Copy link
Copy Markdown
Member

@parse-community/server anyone has a suggestion for a fix? The failing test here already demos the issue.

@dblythy

dblythy commented Jun 6, 2022

Copy link
Copy Markdown
Member

I would assume the issue is happening somewhere around here

RestWrite.prototype.buildParseObjects = function () {

@mtrezza

mtrezza commented Jun 6, 2022

Copy link
Copy Markdown
Member

@Meglali20 Would you want to rebase this PR on alpha and resolve the conflicts?

@Meglali20

Copy link
Copy Markdown
Contributor Author

@mtrezza you mean if I could fix it? I didn't have time yet to look at the parse server code, so I don't think I could fix it at the moment, If you could provide me with some information on how the process works I would maybe try to figure it out.

@mtrezza

mtrezza commented Jun 10, 2022 •

Copy link
Copy Markdown
Member

@Meglali20 I didn't mean to fix the issue, just to fix the conflicts in this PR:
image

There have been commits to alpha since you opened this PR, so there are some conflicts between the latest code and this PR.

@Meglali20

Copy link
Copy Markdown
Contributor Author

Resolved conflicts.

Comment thread src/RestWrite.js Resolved
Comment thread spec/CloudCode.spec.js Resolved
Comment thread README.md Resolved
Comment thread changelogs/CHANGELOG_alpha.md Resolved
Comment thread package-lock.json Resolved
@JesperLekland

Copy link
Copy Markdown

Was there ever a fix for this? Or still just a test that showcases the bug?

@Meglali20

Copy link
Copy Markdown
Contributor Author

@JesperLekland I am not aware of any fix, I just used a workaround by creating a new class for already registered users.

@parse-github-assistant

Copy link
Copy Markdown

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant Bot changed the title fix: original object not retrieved when user logs in with third party auth fix: Original object not retrieved when user logs in with third party auth Jul 3, 2023

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

10 participants