Skip to content

[Bug]: Request for public.php returns 500 #56052

@gwire

Description

@gwire

⚠️ This issue respects the following points: ⚠️

Bug description

I'm seeing failed requests for /public.php which are returning 500 instead of a 4xx status.

These requests are for public.php without any GET variables provided.

Steps to reproduce

  1. run curl -I http://localhost/public.php or equivalent and check the status code.

Expected behavior

I would expect a 400 response where no arguments are provided, but a 404 may also be appropriate.

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

None

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

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

{"reqId":"Fvuf03hrGPu5KngRqVEE","level":3,"time":"2025-10-28T12:15:17+00:00","remoteAddr":"REDACTED","user":"--","app":"public","method":"GET","url":"/nextcloud/public.php","message":"Path not found","userAgent":"curl/8.7.1","version":"32.0.0.13","exception":{"Exception":"Exception","Message":"Path not found","Code":404,"Trace":[],"File":"/opt/nextcloud-32/public.php","Line":53,"message":"Path not found","exception":{},"CustomMessage":"Path not found"}}

Additional info

No response

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