Skip to content
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

notice on empty cachedPath #1776

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ArtificialOwl
Copy link
Member

notice and ignore entries with empty cachedPath for userId.

Copy link

cypress bot commented Sep 13, 2024

Activity    Run #1933

Run Properties:  status check passed Passed #1933  •  git commit c41830e98d: notice on empty cachedPath
Project Activity
Branch Review feat/noid/log-on-no-user
Run status status check passed Passed #1933
Run duration 03m 35s
Commit git commit c41830e98d: notice on empty cachedPath
Committer Maxence Lange
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 10
View all changes introduced in this branch ↗︎

@@ -1331,6 +1331,12 @@ private function getUnrelatedUsers(int $fileId, array $cachedMounts): array {
// now that we have a list of eventuals filtered users, we confirm they have no access to the file
$filteredUsers = [];
foreach ($usersToCheck as $userId) {
if (!array_key_exists($userId, $cachedPath) || $cachedPath[$userId] === null) {
$this->logger->notice('could not find user in list of cached path', ['cachePath' => $cachedPath, 'usersToCheck' => $usersToCheck, 'current' => $userId]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know whether it is an error or not. Shouldn't we try to fetch the user path?

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.

2 participants