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

fix(files_external): cast storage id int #49218

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Nov 12, 2024

Fix "OCA\\Files_External\\Service\\DBConfigService::getMountById(): Argument #1 ($mountId) must be of type int, string given

Do we need strict typing on this? 🤔

{
      "Exception": "TypeError",
      "Message": "OCA\\Files_External\\Service\\DBConfigService::getMountById(): Argument #1 ($mountId) must be of type int, string given, called in /var/www/html/nextcloud_test1/apps/files_external/lib/Service/StoragesService.php on line 164",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/html/nextcloud_test1/apps/files_external/lib/Service/StoragesService.php",
          "line": 164,
          "function": "getMountById",
          "class": "OCA\\Files_External\\Service\\DBConfigService",
          "type": "->"
        },
        {
          "file": "/var/www/html/nextcloud_test1/apps/files_external/lib/Controller/StoragesController.php",
          "line": 296,
          "function": "getStorage",
          "class": "OCA\\Files_External\\Service\\StoragesService",
          "type": "->"
        },
        {
          "file": "/var/www/html/nextcloud_test1/apps/files_external/lib/Controller/UserStoragesController.php",
          "line": 110,
          "function": "show",
          "class": "OCA\\Files_External\\Controller\\StoragesController",
          "type": "->"
        },
        {
          "file": "/var/www/html/nextcloud_test1/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 230,
          "function": "show",
          "class": "OCA\\Files_External\\Controller\\UserStoragesController",
          "type": "->"
        },
        {...}
}

@skjnldsv skjnldsv added this to the Nextcloud 31 milestone Nov 12, 2024
@skjnldsv skjnldsv requested a review from a team November 12, 2024 09:29
@skjnldsv skjnldsv self-assigned this Nov 12, 2024
@skjnldsv skjnldsv requested review from nfebe, yemkareems and provokateurin and removed request for a team November 12, 2024 09:29
@skjnldsv
Copy link
Member Author

/backport to stable30

@skjnldsv
Copy link
Member Author

/backport to stable29

@skjnldsv
Copy link
Member Author

/backport to stable28

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 12, 2024
@skjnldsv skjnldsv merged commit 25dd593 into master Nov 12, 2024
189 checks passed
@skjnldsv skjnldsv deleted the fix/external-storage-int branch November 12, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: external storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants