-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: Setup check for X-Robot-Tag
expects exact match, resulting in a warning
#37409
Comments
Cc @MichaIng |
Not related to our recent change, so I removed 26-feedback tag. Same request was done here: nextcloud/docker#1218
So while the extras do most likely not hurt, they are all redundant/unnecessary and at best ballast. And while I do not think so, there is also a chance that those, since not supported by all search engines, may even confuse other search engines and in worst case lead to the essential |
modify the X-Robots-Tag in nextcloud\config\nginx\site-confs |
Shouldn't |
It is not equivalent: #36689 |
I disagree. While this might be true for the values noted in the OP I am using the additional value |
Is there some "official" documentation about this header value? I could only find it being respected by the img2dataset tool, which used to massively cause trouble for image-related websites like DeviantArt, not to forget the personal and legal concerns: https://github.com/rom1504/img2dataset/pull/249/files However, checking the docs of the option which is not set by default to 4 header values, suggests that any of them is interpreted as denial: https://github.com/rom1504/img2dataset/blob/6adc82b/README.md?plain=1#L169 If you know a tool/service/case where it is different, and |
This is still not fixed |
It is also still no closed and the confirmation that any additional value for this header makes any sense is outstanding (see my last reply). As long as |
Yes, but e.g. The test should look for the presence of Simple as. |
Of course we could make those tests overly complex and hence error-prone. But is it really such a problem to just exchange the two arguments in your webserver config? |
I don't consider a test that tests correctly overly complex I consider a test that doesn't test correctly a bug If a project doesn't aim to be bug free, it can never become bug free |
I am just a spare time contributor as well, and I have no motivation to rewrite the test unless it is really required to solve peoples need. All headers tests expect a hardcoded string, this was always the case, and it should not be a problem unless this hardcoded string is not fulfilling all possible user needs. As If you have a different opinion, and changing the header in your webserver config causes you more trouble then rewriting the test yourself, you are of course free to open a PR 😉. |
I have X-Robots-Tag set to noindex, nofollow yet I still get error messages about it not being set to noindex,nofollow might be best to remove the error message altogether as I have never known it to work correctly. |
The entire approach is flawed, wondering how low quality code like this can stay in such a big project. |
@kale1d0code curl -IL https://localhost/ or of your Nextcloud is in a sub directory: curl -IL https://localhost/nextcloud/ @darkBuddha If this topic remains just a "but I want to be able to copy&paste other/worse values into my config, while I am not able or willing to implement this myself", I vote for locking it. If someone comes up with a "real" argument, then we can reopen it. |
I ran
and found the x-robots-tag in every 302 and 303 request but the last 200 request did not have the header.
another confusing thing is the header shows a space in the curl output but doesn't in chrome devtools. |
Note that in Nginx, |
X-Robot-Tag
for exact match, resulting in a warning.X-Robot-Tag
expects exact match, resulting in a warning
Bug description
I have set the following tags using treafik (which I can see in the response headers)
Yet nextcloud still shows
Steps to reproduce
X-Robot-Tag
plus some extra.Overview
Expected behavior
Warning to only show when headers are lesser than the recommended
Installation method
Community Docker image
Operating system
Other
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: