Skip to content

[Bug]: Undefined array key "HTTP_USER_AGENT" at 3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php#159 #41466

Closed
@kesselb

Description

⚠️ This issue respects the following points: ⚠️

Bug description

Found in a customer log file:

{
  "reqId": "",
  "level": 3,
  "time": "October 31, 2023 03:09:42",
  "remoteAddr": "",
  "user": "",
  "app": "PHP",
  "method": "GET",
  "url": "/s/123456789/download",
  "message": "Undefined array key \"HTTP_USER_AGENT\" at 3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php#159",
  "userAgent": "--",
  "version": "27.1.2.2",
  "data": {
    "app": "PHP"
  }
}

Steps to reproduce

Download a public share without having a user agent? 🤷

Expected behavior

No warning ;)

Installation method

None

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions