Skip to content

[Bug]: Warning with lazy objects and debug mode "App class OC\\Core\\AppInfo\\Application is not setup via query() but directly" #53463

Closed
@kesselb

Description

@kesselb

Bug description

"App class OC\Core\AppInfo\Application is not setup via query() but directly" us logged for each request.

Steps to reproduce

  1. Use php8.4
  2. 'enable_lazy_objects' => true,
  3. 'debug' => true,

Expected behavior

I might be wrong, but with lazy objects enabled, it seems intentional to call the constructor directly. Therefore, we may need to adjust the check in the application base class.

However, I'm confused as to why we only see that warning for Core and not the other application classes. Initializing this class seems to take an unusual path.

I'm raising this issue for awareness.

Nextcloud Server version

master

PHP engine version

8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap32-feedbackbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions