[openstreetmap/openstreetmap-website] Atom feed on user's edit history is broken (#2331)

Nutchanon Wetchasit notifications at github.com
Sat Jul 27 13:48:22 UTC 2019


Back when I was investigating [this improper MAPS.ME contributions](https://forum.openstreetmap.org/viewtopic.php?id=64515), I tried to use an Atom feed shown on browser's location bar while viewing [user's edit history page](https://www.openstreetmap.org/user/hs4rtu/history) to keep track of any additional edit at the time; but **clicking on the feed icon gave a HTTP 404 error instead of a functional feed**.

Exact steps to reproduce:

- Start a browser with JavaScript enabled.
- Go to [user `hs4rtu`'s history page](https://www.openstreetmap.org/user/hs4rtu/history) on OpenStreetMap.
- The browser would show user's edit list and zoom to the area of most-latest edits by that user. ([Screenshot](https://u.cubeupload.com/xwindows/1ym9fS.png))
- Click on the feed icon at the end of address bar.
- Instead of displaying feed, the browser would take you to [a URL with gibberish Ruby-like hashtable string](https://www.openstreetmap.org/user/hs4rtu/{%22display_name%22=%3E%22hs4rtu%22,%20%22max_id%22=%3Enil,%20%22xhr%22=%3Enil,%20%22action%22=%3E:feed}?bbox=undefined), which gives 404 _File not found_ error:
	
	![](https://u.cubeupload.com/xwindows/nuFIKd.png)
	
	Caveat: If your browser does not show the 404 page, see _Notes_ below (point 3).

Browser: Opera 11.64  
System: Microsoft Windows XP SP3

-----

### Notes ###

1. **I'm quite sure that Atom feed of area-based history is also affected.**
1. Enabling or disabling JavaScript does not matter.
1. This is not browser-specific, a test under Pale Moon 25.5.0 on the same machine yields essentially the same result (non-functional feed), though the symptom is more subtle...
	
	Under this browser, clicking feed icon would make the browser appear to load something, and when the loading finished, nothing happens: the browser is still in the unchanged history page with unchanged URL. A peek with browser's _Inspect_ tool reveals this code inside `<head>` element:
	
	![](https://u.cubeupload.com/xwindows/UYeyC6.png)
	
	Right-clicking the `<link>` tag and select <q>Copy outer HTML</q>, gives the following HTML code:
		
		<link rel="alternate" type="application/atom+xml" title="ATOM" href="{"display_name"=>"hs4rtu", "max_id"=>nil, "xhr"=>nil, "action"=>:feed}?bbox=undefined">
	
	**The feed's URL is effectively the same as one in Opera's result.** Note that viewing the element's code before or after clicking the feed icon does not make any difference.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2331
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190727/0eb36e56/attachment.html>


More information about the rails-dev mailing list