SignUp() function throws Fatal error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- authentication, backend
Hướng nghiên cứu
Start at src/Parse/ParseClient.php:604 and follow the signup path through src/Parse/ParseUser.php:122, using the supplied PHP 7.2.12, SDK 1.6.0, and _User permission details. Reproduce the signUp() call and trace the permission failure; done would be a confirmed diagnosis with a clearly stated corrective change or documentation update.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi, I have a problem creating new users.
Even if I pass true within the signUp() call I get an error message.
Now I created an user named Admin and a role named Admin but I really wanna know why the user creating with my settings doesnt work properly?
this is my source code:
require 'parse-php-sdk/autoload.php';
use Parse\ParseClient;
use Parse\ParseUser;
$master_key = "XXXXXXXXXXXX";
$app_id = "XXXXXXXXX";
ParseClient::initialize( $app_id, "", $master_key );
ParseClient::setServerURL('https://lalalala:443','parse');
$user = new ParseUser();
$user->set("username", $_POST['username']);
$user->set("password", $_POST['password']);
try
{
$user->signUp();
echo ParseUser::getCurrentUser()->getSessionToken();
}
catch (ParseException $ex)
{
echo "Error: " . $ex->getCode() . " " . $ex->getMessage();
}
Environment Details
- Your PHP Version: 7.2.12
- Your Parse PHP SDK Version: 1.6.0
- Your Operating System: Windows 10
This is the error message I get:
Fatal error: Uncaught Parse\ParseException: Permission denied for action create on class _User. in XXX\parse\parse-php-sdk\src\Parse\ParseClient.php:604 Stack trace:
#0 XXX\parse\parse-php-sdk\src\Parse\ParseObject.php(1264): Parse\ParseClient::_request('POST', 'classes/_User', NULL, '{"username":"ha...', false)
#1 XXX\parse\parse-php-sdk\src\Parse\ParseObject.php(1172): Parse\ParseObject::deepSave(Object(Parse\ParseUser), false)
#2 XXX\parse\parse-php-sdk\src\Parse\ParseUser.php(122): Parse\ParseObject->save()
#3 XXX\parse\create_user.php(20): Parse\ParseUser->signUp(true)
#4 {main} thrown in XXX\parse\parse-php-sdk\src\Parse\ParseClient.php on line 604
These are the permissions for the class User

- Ngôn ngữ chính
- PHP
- Star
- 808
- Fork
- 341
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của parse-community/parse-php-sdk
-
Undefined array key "result"Đang mởtype:feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
parse-community/parse-php-sdk#518 · 1 bình luận ·
-
bounty:$20 type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
parse-community/parse-php-sdk#516 · 5 bình luận · 1 reaction ·
-
"unauthorized: master key is required" error on aggregate ParseQuery despite the master key is setĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
parse-community/parse-php-sdk#466 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
parse-community/parse-php-sdk#457 · 1 bình luận ·
-
parse query for phpĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
parse-community/parse-php-sdk#456 · 1 bình luận ·
Tất cả issue của parse-community/parse-php-sdk
Issue tương tự
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
P2 testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
1.severity: security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Automattic/static-site-importer#1879 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Installation / Upgrade
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày