Jump to content

[BUG] Link to Profile Page and Nearest List are not working when user has "+" in his name


Ruko2010

Recommended Posts

Hi, I recently discovered, that the link to the profile of another user is not working, if this user has a "+" in his name.

This only effects the links, that reference the username.

https://www.geocaching.com/seek/nearest.aspx?u=
https://www.geocaching.com/profile/?u=

For example, if you go to https://coord.info/GC7CR0T the username is "RasendeZwerge 1+2+3". When looking under "Find..." you have two links, "..other caches hidden or found by this user". They look like:

find.png

https://www.geocaching.com/seek/nearest.aspx?u=RasendeZwerge%201%2B2%2B3
https://www.geocaching.com/seek/nearest.aspx?ul=RasendeZwerge%201%2B2%2B3

so, you can see, that the username is urlencoded.

%20 = Space
%2B = +

Technically, this looks good, but I think the following process, that decodes the username is not working properly, because both links (and also the profile link mentioned above, on which my App relies ;)) are showing the search page with the error.

That username does not exist in the system

 

I hope this will get fixed soon :D.

Link to comment
5 hours ago, palmetto said:

Other special characters do this as well. I reported this quite some time back, not going to hunt for when.  I find it adorable that not only does it not work, but it takes you to Old Search, where any special character username will fail. New Search will handle those names.

Thanks for that, I'll give that a try (but not permanently...).  A week or so ago I thought the site had a hacker when nothing matched with their profile (clicking on profile showed a completely different account).  Same with "find another player" in "old" profile  dashboard ...and reported them.  :D

Link to comment

Apologies, I did respond to something different than what you originally wrote of.

To see the profile of a player with special characters in the username, go to any cache they own,( or a log of theirs on any cache )- using your example: go to https://coord.info/GC7CR0T 

go to the top, and click on the link of the cache owner's name there. that link uses the players guid, which will work.

https://www.geocaching.com/profile/?guid=2afd21fe-f667-40e3-a079-d6be494b04ae

 

 
 
 
 
Edited by palmetto
Link to comment
21 hours ago, palmetto said:

Apologies, I did respond to something different than what you originally wrote of.

To see the profile of a player with special characters in the username, go to any cache they own,( or a log of theirs on any cache )- using your example: go to https://coord.info/GC7CR0T 

go to the top, and click on the link of the cache owner's name there. that link uses the players guid, which will work.


https://www.geocaching.com/profile/?guid=2afd21fe-f667-40e3-a079-d6be494b04ae

 

 
 
 
 

Sure, this "manual" way works, but I'm currently trying to fix a bug in a Tempermonkey Userscript for geocaching (GCLittle Helper, here is the Link if you are interested: https://github.com/2Abendsegler/GClh) and there I need a Link to the Users Profile whilst only knowing the username. Here is an example: For know, we are doing it with this link: https://www.geocaching.com/p/default.aspx?u=RasendeZwerge%201%2B2%2B3 for the username "RasendeZwerge 1+2+3", but as I mentioned before, the link is not working because of the "+" in the username.

So we need a generic way to link to the profile if we only know the username. If it would be possible to generate the guid of the user out of his username, this would be great, but I don't know if the guid is a generated value or a id assigned by Groundspeak.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...