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

[stable24] Fix issue #31692 of occ files:scan #32841

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jun 12, 2022

Backport of #32059

occ files:scan reports error "Implicit conversion from float XXX to int loses precision"

occ files:scan reports error "Implicit conversion from float XXX to int loses precision"

Signed-off-by: cld4h <[email protected]>
Signed-off-by: Richard Steinmetz <[email protected]>
@st3iny st3iny added bug 3. to review Waiting for reviews labels Jun 12, 2022
@st3iny st3iny self-assigned this Jun 12, 2022
@st3iny st3iny added this to the Nextcloud 24.0.2 milestone Jun 12, 2022
@st3iny st3iny mentioned this pull request Jun 12, 2022
2 tasks
@kesselb kesselb mentioned this pull request Jun 12, 2022
@blizzz blizzz requested review from a team, ArtificialOwl, icewind1991 and come-nc and removed request for a team June 13, 2022 07:47
@blizzz blizzz merged commit 8188ad5 into stable24 Jun 13, 2022
@blizzz blizzz deleted the backport-32059-stable24 branch June 13, 2022 09:26
@EWouters
Copy link
Contributor

EWouters commented Jan 1, 2023

Seems like this is still an issue:

	File   /appdata_ocm5dj6n528c/dav-photocache/b1248f30a32c6c205f9cf70f83651bb6/nophoto

In ScanAppData.php line 242:

  [ErrorException]
  Implicit conversion from float 10.566666666666666 to int loses precision


Exception trace:
  at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:242
 OCA\Files\Command\ScanAppData->exceptionErrorHandler() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:242
 OCA\Files\Command\ScanAppData->formatExecTime() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:218
 OCA\Files\Command\ScanAppData->showSummary() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:207
 OCA\Files\Command\ScanAppData->presentStats() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:161
 OCA\Files\Command\ScanAppData->execute() at /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/nextcloud/core/Command/Base.php:168
 OC\Core\Command\Base->run() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /var/www/nextcloud/lib/private/Console/Application.php:211
 OC\Console\Application->run() at /var/www/nextcloud/console.php:100
 require_once() at /var/www/nextcloud/occ:11

files:scan-app-data [--output [OUTPUT]] [--] [<folder>]

@st3iny
Copy link
Member Author

st3iny commented Jan 2, 2023

Seems like this is still an issue:

	File   /appdata_ocm5dj6n528c/dav-photocache/b1248f30a32c6c205f9cf70f83651bb6/nophoto

In ScanAppData.php line 242:

  [ErrorException]
  Implicit conversion from float 10.566666666666666 to int loses precision


Exception trace:
  at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:242
 OCA\Files\Command\ScanAppData->exceptionErrorHandler() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:242
 OCA\Files\Command\ScanAppData->formatExecTime() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:218
 OCA\Files\Command\ScanAppData->showSummary() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:207
 OCA\Files\Command\ScanAppData->presentStats() at /var/www/nextcloud/apps/files/lib/Command/ScanAppData.php:161
 OCA\Files\Command\ScanAppData->execute() at /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/nextcloud/core/Command/Base.php:168
 OC\Core\Command\Base->run() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /var/www/nextcloud/lib/private/Console/Application.php:211
 OC\Console\Application->run() at /var/www/nextcloud/console.php:100
 require_once() at /var/www/nextcloud/occ:11

files:scan-app-data [--output [OUTPUT]] [--] [<folder>]

This was already reported.

Ref #34283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants