current user update failed but session updated !
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- php
调研方向
Start with ParseUser::getCurrentUser(), set(), and save() using the reproduction steps in this issue. Run the example with a username change that the backend rejects, then inspect how the current session reflects the failed save. Done means the current user's session retains its previous value when the backend update fails.
由索引模型根据 Issue 内容生成。
描述
Issue Description
If the current user want to change his Email/username normally Parse check if username used by other user and if it is used it will return error, now this is good and work perfectly so far but the issue is the session is automatically updates to the new value where it failed.
so basically the session for the current user updated even if it wasn't for the backend
Steps to reproduce
$currentUser = Parse\ParseUser::getCurrentUser();
echo "Current Username is : ". $currentUser->get("username");
if ($currentUser) {
$currentUser->set("username", "ww");
try {
$currentUser->save();
echo "UPDATED";
} catch (Parse\ParseException $er) {
$ex = $er->getMessage();
echo "<br> Error: ". $ex;
}
}
here is a video that explains more:
- 主要语言
- PHP
- 星标
- 808
- 派生
- 340
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
parse-community/parse-php-sdk 的其他 Issue
-
Support PHP 8.4 and 8.5可能已有人在做 @zeliard91 于 26 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 72/100
parse-community/parse-php-sdk#529 · 1 条评论 ·
-
Queries on array values broken since 2.3.1可能已有人在做 @gut-puncture 于 154 天前认领。 未关闭bounty:$20 type:bug
难度 3/5 1-2 天 新手友好度 48/100
parse-community/parse-php-sdk#516 · 5 条评论 · 1 个 reaction ·
-
"unauthorized: master key is required" error on aggregate ParseQuery despite the master key is set未关闭
难度 3/5 1-2 天 新手友好度 35/100
parse-community/parse-php-sdk#466 ·
-
难度 4/5 3-5 天 新手友好度 25/100
parse-community/parse-php-sdk#465 ·
-
难度 3/5 1-2 天 新手友好度 25/100
parse-community/parse-php-sdk#457 · 1 条评论 ·
查看 parse-community/parse-php-sdk 的全部 Issue
相似的 Issue
-
FrameworkBundle SecurityBundle
难度 2/5 1-3 小时 新手友好度 68/100
symfony/symfony-docs#23277 ·
维护者通常 3 天内回复
-
[Sync EN] hard link does not need special permissions可能已有人在做 @lacatoire 今天认领。 未关闭sync-en
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1 小时以内 新手友好度 76/100
维护者通常 4 天内回复
-
bug mod:appointments
难度 2/5 1-3 小时 新手友好度 78/100
3pontos-tech/gil-benefits#303 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复