<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://api.openstreetmap.org/api/0.6/user/preferences/diary.default_language" rel="nofollow">https://api.openstreetmap.org/api/0.6/user/preferences/diary.default_language</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<ol dir="auto">
<li>List your preferences: <code class="notranslate">curl -X GET -H "Authorization: Bearer $Token" https://api.openstreetmap.org/api/0.6/user/preferences/ -w "\n%{http_code}\n"</code></li>
</ol>
<pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="OpenStreetMap server" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<preferences>
<preference k="diary.default_language" v="en"/>
<preference k="gps.trace.visibility" v="identifiable"/>
<preference k="nbInvalid" v="-1"/>
<preference k="nbValid" v="-1"/>
</preferences>
</osm>
200
</code></pre>
<ol start="2" dir="auto">
<li>It works and return http status code 200</li>
<li>Get preference without dot in name: <code class="notranslate">curl -X GET -H "Authorization: Bearer $Token" https://api.openstreetmap.org/api/0.6/user/preferences/nbValid -w "\n%{http_code}\n"</code></li>
</ol>
<pre class="notranslate"><code class="notranslate">-1
200
</code></pre>
<ol start="4" dir="auto">
<li>It works and return -1 (nbValid value) and http status code 200</li>
<li>Get preference without dot in name: <code class="notranslate">curl -X GET -H "Authorization: Bearer $Token" https://api.openstreetmap.org/api/0.6/user/preferences/diary.default_language -w "\n%{http_code}\n"</code></li>
</ol>
<pre class="notranslate"><code class="notranslate">
404
</code></pre>
<ol start="6" dir="auto">
<li>It does not work. Returns empty and 404</li>
</ol>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto"><em>No response</em></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5004">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOBD53IZNWRIHETZI3ZNEBPXAVCNFSM6AAAAABLEQG24SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTQNZXHE2TSMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKYVKIDF3RO2T6BXNDZNEBPXA5CNFSM6AAAAABLEQG24SWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJAK5FZE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5004</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5004",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5004",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>