-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix typos found by codespell #3
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merged, thank you! |
bohwaz
pushed a commit
that referenced
this pull request
Apr 24, 2023
this fixes a deprecation notices on php8.2 which results in an error and therefore inability to register on nextcloud client ErrorReport: ``` [24-Apr-2023 19:07:01 UTC] =========== Error ref. 25qisnme =========== ErrorException: Deprecated: Creation of dynamic property KaraDAV\NextCloud::$user is deprecated in /home/lubiana/dev/private/karadav/lib/KaraDAV/NextCloud.php:33 Stack trace: #0 /home/lubiana/dev/private/karadav/lib/KaraDAV/NextCloud.php(33): KD2\ErrorManager::errorHandler(8192, '...', '...', 33) #1 /home/lubiana/dev/private/karadav/lib/KD2/WebDAV/NextCloud.php(380): KaraDAV\NextCloud->auth('...', '...') #2 /home/lubiana/dev/private/karadav/lib/KD2/WebDAV/NextCloud.php(559): KD2\WebDAV\NextCloud->requireAuth() #3 /home/lubiana/dev/private/karadav/lib/KD2/WebDAV/NextCloud.php(317): KD2\WebDAV\NextCloud->nc_user('...') #4 /home/lubiana/dev/private/karadav/lib/KaraDAV/Server.php(44): KD2\WebDAV\NextCloud->route('...') #5 /home/lubiana/dev/private/karadav/www/_router.php(47): KaraDAV\Server->route('...') #6 {main} <errorReport> { "errors": [ { "message": "Deprecated: Creation of dynamic property KaraDAV\\NextCloud::$user is deprecated", "errorCode": 0, "type": "PHP error", "backtrace": [ { "file": "\/home\/lubiana\/dev\/private\/karadav\/lib\/KaraDAV\/NextCloud.php", "line": 33, "code": { "29": "\t\tif (!$user) {", "30": "\t\t\treturn false;", "31": "\t\t}", "32": "", "33": "\t\t$this->user = $user;", "34": "", "35": "\t\treturn true;", "36": "\t}", "37": "" } }, { "function": "KaraDAV\\NextCloud->auth", "file": "\/home\/lubiana\/dev\/private\/karadav\/lib\/KD2\/WebDAV\/NextCloud.php", "line": 380, "args": { "$login": "string(7) \"lubiana\"", "$password": "string(33) \"redacted\"" }, "code": { "376": "\t}", "377": "", "378": "\tprotected function requireAuth(): void", "379": "\t{", "380": "\t\tif (!$this->auth($_SERVER['PHP_AUTH_USER'] ?? null, $_SERVER['PHP_AUTH_PW'] ?? null)) {", "381": "\t\t\theader('WWW-Authenticate: Basic realm=\"Please login\"');", "382": "\t\t\tthrow new Exception('Please login to access this resource', 401);", "383": "\t\t}", "384": "\t}" } }, { "function": "KD2\\WebDAV\\NextCloud->requireAuth", "file": "\/home\/lubiana\/dev\/private\/karadav\/lib\/KD2\/WebDAV\/NextCloud.php", "line": 559, "code": { "555": "\t}", "556": "", "557": "\tpublic function nc_user(): array", "558": "\t{", "559": "\t\t$this->requireAuth();", "560": "", "561": "\t\t$quota = $this->getUserQuota();", "562": "\t\t$user = $this->getUserName() ?? 'null';", "563": "" } }, { "function": "KD2\\WebDAV\\NextCloud->nc_user", "file": "\/home\/lubiana\/dev\/private\/karadav\/lib\/KD2\/WebDAV\/NextCloud.php", "line": 317, "args": [ "string(21) \"ocs\/v1.php\/cloud\/user\"" ], "code": { "313": "\t\t$method = $_SERVER['REQUEST_METHOD'] ?? null;", "314": "\t\t$this->server->log('NC <= %s %s => routed to: %s', $method, $uri, $route);", "315": "", "316": "\t\ttry {", "317": "\t\t\t$v = $this->{'nc_' . $route}($uri);", "318": "\t\t}", "319": "\t\tcatch (Exception $e) {", "320": "\t\t\t$this->server->log('NC => %d - %s', $e->getCode(), $e->getMessage());", "321": "\t\t\thttp_response_code($e->getCode());" } }, { "function": "KD2\\WebDAV\\NextCloud->route", "file": "\/home\/lubiana\/dev\/private\/karadav\/lib\/KaraDAV\/Server.php", "line": 44, "args": { "$uri": "string(21) \"ocs\/v1.php\/cloud\/user\"" }, "code": { "40": "\t\t}", "41": "", "42": "\t\t$this->nc->setServer($this->dav);", "43": "", "44": "\t\tif ($r = $this->nc->route($uri)) {", "45": "\t\t\t\/\/ NextCloud route already replied something, stop here", "46": "\t\t\treturn true;", "47": "\t\t}", "48": "" } }, { "function": "KaraDAV\\Server->route", "file": "...\/_router.php", "line": 47, "args": { "$uri": "string(22) \"\/ocs\/v1.php\/cloud\/user\"" }, "code": { "43": "if (isset($_SERVER['REDIRECT_REQUEST_METHOD'])) {", "44": "\t$_SERVER['REQUEST_METHOD'] = $_SERVER['REDIRECT_REQUEST_METHOD'];", "45": "}", "46": "", "47": "if (!$s->route($uri)) {", "48": "\tif (PHP_SAPI == 'cli-server') {", "49": "\t\t$s->dav->log(\"ROUTER: => Route is not managed: 404\");", "50": "\t}", "51": "" } } ] } ], "context": { "date": "2023-04-24T19:07:01+00:00", "duration": 155.84897994995117, "environment": "development", "hostname": "0.0.0.0", "http_files": "array(0) {\n}", "http_method": "GET", "http_post": "array(0) {\n}", "http_user_agent": "Mozilla\/5.0 (Linux) mirall\/3.8.1git (Nextcloud, arch-6.2.12-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)", "id": "25qisnme", "language": "PHP 8.2.5", "memory_peak": 2097152, "memory_used": 2097152, "os": "Linux", "php_sapi": "cli-server", "remote_ip": "127.0.0.1", "root_directory": "\/home\/lubiana\/dev\/private\/karadav\/www", "user_addr": "127.0.0.1", "url": "http:\/\/127.0.0.1:8080\/ocs\/v1.php\/cloud\/user?format=json" } } </errorReport> ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.