nextcloud.com icon indicating copy to clipboard operation
nextcloud.com copied to clipboard

Blog RSS link broken (wrong redirects)

Open GabMus opened this issue 6 years ago • 1 comments

The rss link on the blog page (https://nextcloud.com/blogfeed) has a redirection chain that ends up offering the wrong content:

  • GET https://nextcloud.com/blogfeed
    • HTTP/1.1 301 Moved Permanently
    • Location: https://nextcloud.com/blog/feed
    • text:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://nextcloud.com/blog/feed">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at nextcloud.com Port 443</address>
</body></html>
  • GET https://nextcloud.com/blog/feed
    • HTTP/1.1 302 Found
    • Location: https://nextcloud.com/blog/static-feed
    • text:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://nextcloud.com/blog/static-feed">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at nextcloud.com Port 443</address>
</body></html>
  • GET https://nextcloud.com/blog/static-feed
    • HTTP/1.1 301 Moved Permanently
    • Location: https://nextcloud.com/blog/static-feed/
    • text:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://nextcloud.com/blog/static-feed/">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at nextcloud.com Port 443</address>
</body></html>
  • GET https://nextcloud.com/blog/static-feed/
    • HTTP/1.1 200 OK Here's the problem
    • (no Location header)
    • text (note, the http code here is 200, text should be a valid RSS feed):
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://nextcloud.com/blog/static-feed">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at nextcloud.com Port 443</address>
</body></html>

GabMus avatar Dec 05 '19 08:12 GabMus

Owing to this error, when subscribing with the Nextcloud News app tons of errors and warnings are logged by the app:

image

simonspa avatar Dec 23 '19 12:12 simonspa