Skip to content

[Bug]: Warning for X-Robots-Tag raises for the none value #37386

@jooola

Description

@jooola

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

After upgrading to 25.0.5, I've checked the admin dashboard, and the I had the following warning:

"The X-Robots-Tag header is not equal to noindex, nofollow."

But I configured my web server to set this header to none which translates to noindex, nofollow.

From my nginx configuration:

  add_header X-Robots-Tag "none" always;

So I think the check should also include the none value.

Steps to reproduce

  1. Configure the web server to set the X-Robots-Tag header to none
  2. See warning

Expected behavior

No warning raised when using none for the X-Robots-Tag header.

Installation method

None

Operating system

None

PHP engine version

None

Web server

None

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

No response

List of activated Apps

Irrelevant ?

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions