Skip to content

Cannot update current user parseSDK1.10.0 #23

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
kenilt opened this issue Aug 17, 2015 · 5 comments
Closed

Cannot update current user parseSDK1.10.0 #23

kenilt opened this issue Aug 17, 2015 · 5 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@kenilt
Copy link

kenilt commented Aug 17, 2015

I got error message Parse::UserCannotBeAlteredWithoutSessionError
Please tell me why?

if (ParseUser.getCurrentUser() != null) {
    ParseUser currentUser = ParseUser.getCurrentUser();
    if (edtEmail.getText().toString().length() > 0) {
        currentUser.setEmail(edtEmail.getText().toString());
    }
    currentUser.setUsername(edtUsername.getText().toString());
    currentUser.put(Constants.K_FE_PARSE_USER_BIO, edtBio.getText().toString().trim());
    currentUser.put(Constants.K_FE_PARSE_USER_LOCATION, edtLocation.getText().toString().trim());
    currentUser.put(Constants.K_FE_PARSE_USER_HEIGHT, sbHeight.getProgress());
    if (edtPassword.getText().toString().length() > 1) {
        currentUser.setPassword(edtPassword.getText().toString());
    }
    if (countryCode == null) {
        countryCode = new CountryCodes().getCode(edtLocation.getText().toString());
    }
    currentUser.put(Constants.K_FE_PARSE_USER_COUNTRY_CODE, countryCode);

    final MaterialDialog dialog = MaterialDialogUtils.createProgressDialog(activity);
    dialog.show();
    currentUser.saveInBackground(new SaveCallback() {
        @Override
        public void done(ParseException e) {
            dialog.dismiss();
            if (e != null) {
                ParseManager.getInstance().checkAndShowErrorMessage(activity, e);
            } else {
                if (isNeedToSendEmail) {
                    ParseUser currentUser = ParseUser.getCurrentUser();
                    if (currentUser != null) {
                        ParseManager.getInstance().sendVerifyEmailTo(activity, currentUser.getEmail(), currentUser.getObjectId(), currentUser.getString(Constants.K_FE_PARSE_USER_FIRST_NAME));
                    }
                }
            }
        }
    });
}
@vishweshwarp
Copy link

I think this bug is same as https://developers.facebook.com/bugs/898928300168631. I am also facing same issue. This issue started from SDK 1.9.3 and exists in 1.10.0 also.

Please fix the issue ASAP.

@grantland
Copy link
Contributor

@kenilt Please update your original issue with information listed in our Contributing Guidelines, such as a link to a PR with a failing unit test, stack trace, etc.

@vishweshwarp Until this issue is updated, I'm not certain that this is the same issue reported in that bug. In either case, that bug is currently being addressed in #3.

@kenilt kenilt changed the title Cannot update current user parseSDK1.10.10 Cannot update current user parseSDK1.10.0 Aug 21, 2015
@kenilt
Copy link
Author

kenilt commented Aug 21, 2015

Yeah, great. It was fixed after update to 1.10.1

@ominfowave
Copy link

This issue is still present in 1.26.0

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Aug 30, 2023
@mtrezza
Copy link
Member

mtrezza commented Aug 30, 2023

@ominfowave Please open a new issue and reference this issue if you encounter the same or a similar bug. This issue has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

5 participants