[Bug 41756] New: RSS feed validation
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 Bug ID: 41756 Summary: RSS feed validation Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: nicolas.hunstein@bsz-bw.de QA Contact: testopia@bugs.koha-community.org When I perform a search in Koha, click on the RSS feed button, copy the generated string and then validate it on the page: https://www.rssboard.org/rss-validator/, I get the message: "It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate." Could this please be fixed? We suspect that there is a problem with the content type. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- I use this site: https://validator.w3.org/feed/, and though it has a couple of recommendations it says the feed is valid. I would think the W3C is a more reputable option for checking validation. Also, are you sure the correct content is being read by that validator? When I test with our production site it ends up validating a Cloudfare error page. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- @Owen: I also had a look at this over the Christmas holidays for an old ticket. I had copied the contents of the page and that validated with warnings, as you said. The problem we have, not using CloudFlare or another proxy, is that the URL doesn't work. And what we hear from the libraries is that they can't subscribe to it in their feed readers. But that said... I wonder if the antibot measures prevent it and that could well be. We are using Koha's internal one and that blocks direct access to the result page somewhat. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 --- Comment #3 from Owen Leonard <oleonard@myacpl.org> --- I'm curious to know what error reporting the feed readers might offer. Mine reports "403 Forbidden" with our ByWater-hosted OPAC. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- (In reply to Katrin Fischer from comment #2)
But that said... I wonder if the antibot measures prevent it and that could well be. We are using Koha's internal one and that blocks direct access to the result page somewhat.
Yeah that's a possibility. I don't think we have anyone with RSS (our libraries typically ask us to remove it all together), but that thought has crossed my mind previously. That should probably be solvable with configuration. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 --- Comment #5 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #4)
Yeah that's a possibility. I don't think we have anyone with RSS (our libraries typically ask us to remove it all together), but that thought has crossed my mind previously. That should probably be solvable with configuration.
That said, if a careless bot is hitting the RSS, then that's a problem. There's certainly tradeoffs... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to David Cook from comment #4)
(In reply to Katrin Fischer from comment #2)
But that said... I wonder if the antibot measures prevent it and that could well be. We are using Koha's internal one and that blocks direct access to the result page somewhat.
Yeah that's a possibility. I don't think we have anyone with RSS (our libraries typically ask us to remove it all together), but that thought has crossed my mind previously. That should probably be solvable with configuration.
Can you suggest something maybe? Looking at the code I am a bit lost on how to do it since we only include a list of pages. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 --- Comment #7 from David Cook <dcook@prosentient.com.au> --- (In reply to Katrin Fischer from comment #6)
Can you suggest something maybe? Looking at the code I am a bit lost on how to do it since we only include a list of pages.
I think there's probably a lot of different ways it could be done. You could add another block between the setting of ANTIBOT_DO and and checking of ANTIBOT_DO. Something like... RewriteCond expr "%{REQUEST_URI} =~ m#^/cgi-bin/koha/(opac-search.pl)$#" RewriteCond %{QUERY_STRING" "format=rss" Rewrite Rule ^ - [E=ANTIBOT_DO:false] I haven't tried it but something like that could potentially work -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|RSS feed validation |Koha Antibot measures block | |RSS feed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Koha Antibot measures block |Koha antibot measures block |RSS feed |RSS feed Depends on| |39906 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39906 [Bug 39906] Add bot challenge (in Apache layer) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41756 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org