Sign in to follow this  
Followers 2
Ruko2010

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

10 posts in this topic

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.

0

Share this post


Link to post

Add the &-sign to this issue. :-(

0

Share this post


Link to post

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.

0

Share this post


Link to post
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

0

Share this post


Link to post
19 hours ago, palmetto said:

New Search will handle those names.

But how can I search for a username on the new search? Isn't that only a search for caches?

0

Share this post


Link to post
3 hours ago, Ruko2010 said:

But how can I search for a username on the new search? Isn't that only a search for caches?

My response assumes you have the username. One of the search panes is Hidden by

That pane will suggest usernames as you start filling it in. I assume it's the same module as "find a player

0

Share this post


Link to post

I think we are talking about different things. Yes I have the username, but I want to access the users profile and this is not working if the username has special chars in it.

1

Share this post


Link to post

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
0

Share this post


Link to post
On 10/12/2017 at 3:25 AM, HHL said:

Add the &-sign to this issue. :-(

The & sign is %26 

0

Share this post


Link to post
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.

0

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 2