warmshowers / wsandroid

Unofficial WarmShowers app for Android
Apache License 2.0
43 stars 22 forks source link

Viewing a host's profile fails, showing instead the searching user's profile #73

Closed GerryN closed 9 years ago

GerryN commented 10 years ago

Recently registered as a host. Now when I do a search and click on a potential place to stay I only see the host description for myself. I see the name of the person I clicked on but my info rather than host.

rfay commented 10 years ago

@GerryN thanks for posting this. Could you please let us know if these debugging steps make a difference:

Also please give us complete info about your device and Android version.

Thanks!

In email Gerry mentioned that this was on a Samsung Galaxy S3; I think that would mean Android 4.1 (same as I have), and I can't replicate this.

Gerry provided in email this screenshot. When he visited (in the app) the profile https://www.warmshowers.org/search/wsuser/hosmanek, he saw his own address details (from https://www.warmshowers.org/user/55481) on the profile instead of the member's (https://www.warmshowers.org/users/specbiker)

hosm_example-11

GerryN commented 10 years ago

Tried those again and I still see me profile under other hosts names.  Attached are screenshots of what I see when I look at another host (their name but my profile) and the About Phone info.

Gerry Newton 303-870-2319

rfay commented 10 years ago

No screenshots here yet, but you can edit your post and drag them in there.

Have you logged out and logged in again, uninstalled and reinstalled? Please provide your android version.

GerryN commented 10 years ago

Can't paste them here either. My Android version is 4.1.2. Phone is Galaxy S3, SCH-I535

rfay commented 10 years ago

For screenshots, use a browser, access this issue at https://github.com/jstaffans/wsandroid/issues/73, drag screenshots into your comment.

Same question remains though: Have you logged out of the app and logged in again, have you uninstalled and reinstalled the app?

GerryN commented 10 years ago

Yes, I've both of those

rfay commented 10 years ago

Well, I have the exact same phone and version. So I'll uninstall and reinstall.

Perhaps you could email me your password and I'll even try it with your account? randy@randyfay.com

Thanks! -Randy

rfay commented 10 years ago

@GerryN I changed your password as you approved, and was able to log in using the app. After uninstalling and reinstalling and logging in as you I do not see this issue.

I'm on SCH-1535, Android 4.1.2, WSAndroid 1.3.4

Baffling.

GerryN commented 10 years ago

Duh, I was changing the password on github, not warmshowers.

I deleted the app from my phone again, made sure that the account was gone, re-installed it, and still see the same issue.

If I go to warmshowers.org on either my phone or my desktop computer everything works fine. I have the same versions of android and wsandroid that you do so I agree, it is puzzling. I don't know enough about android to figure it out. My guess would be that something was written to a file on my phone at sometime in the past and that it is interfering with the app now.   Gerry Newton 303-870-2319

On Tuesday, October 29, 2013 2:04 PM, Randy Fay notifications@github.com wrote:

@GerryN I changed your password as you approved, and was able to log in using the app. After uninstalling and reinstalling and logging in as you I do not see this issue. I'm on SCH-1535, Android 4.1.2, WSAndroid 1.3.4 Baffling. — Reply to this email directly or view it on GitHub.

GerryN commented 10 years ago

Duh, I was changing the password on github, not warmshowers.

I deleted the app from my phone again, made sure that the account was gone, re-installed it, and still see the same issue.

If I go to warmshowers.org on either my phone or my desktop computer everything works fine. I have the same versions of android and wsandroid that you do so I agree, it is puzzling. I don't know enough about android to figure it out. My guess would be that something was written to a file on my phone at sometime in the past and that it is interfering with the app now.

GerryN commented 10 years ago

Duh, I was changing the password on github, not warmshowers.

I deleted the app from my phone again, made sure that the account was gone, re-installed it, and still see the same issue.

If I go to warmshowers.org on either my phone or my desktop computer everything works fine. I have the same versions of android and wsandroid that you do so I agree, it is puzzling. I don't know enough about android to figure it out. My guess would be that something was written to a file on my phone at sometime in the past and that it is interfering with the app now.

BTW, I"m doing a last minute tour in Florida. Leaving on the 11th and coming back the Monday before Thanksgiving. Let me know if you're interested.   Gerry Newton 303-870-2319

On Tuesday, October 29, 2013 2:04 PM, Randy Fay notifications@github.com wrote:

@GerryN I changed your password as you approved, and was able to log in using the app. After uninstalling and reinstalling and logging in as you I do not see this issue. I'm on SCH-1535, Android 4.1.2, WSAndroid 1.3.4 Baffling. — Reply to this email directly or view it on GitHub.

rfay commented 10 years ago

Thanks for the offer, @GerryN , but this is the time of year my Mom is here, so no bike touring this time of year :-)

jstaffans commented 10 years ago

You could try re-entering your credentials in the app. Open the menu (hardware button) on e.g. the starred hosts page and click Account.

GerryN commented 10 years ago

Tried that. Deleted the app, re-installed it, and still had the problem. Don't have the problem if go to the website. We're guessing that it is a bug local to my phone.   Gerry Newton 303-870-2319

On Friday, November 8, 2013 4:59 AM, jstaffans notifications@github.com wrote:

You could try re-entering your credentials in the app. Open the menu (hardware button) on e.g. the starred hosts page and click Account. — Reply to this email directly or view it on GitHub.

rfay commented 10 years ago

This is a really hard one as I can't demonstrate the behavior on the same phone model with the same account.

The only approach I can think of is code inspection.

bretonsuisse commented 10 years ago

Hello, excuse me for my bad English. I have a problem forsearch with the application on my samsung GT-19295 S4 with android 4.2.2. when I want to search I receive this message "could not retrieve host information. credentials and check your internet connection" I tried to uninstall and dellete all information cached and then to install but for now it does not change anything. my internet connection is active and my username and login too. you have any solution? Thanks

GerryN commented 10 years ago

This may not be it, but I'm in Europe and have seen the same issue while on WiFi. Turning on mobile data solved the problem.

Gerry Newton 303-870-2319

bretonsuisse commented 10 years ago

Thanks for this answer. if i can use i give you a feed back Le 29 mai 2014 19:11, "GerryN" notifications@github.com a écrit :

This may not be it, but I'm in Europe and have seen the same issue while on WiFi. Turning on mobile data solved the problem.

Gerry Newton 303-870-2319

— Reply to this email directly or view it on GitHub https://github.com/warmshowers/wsandroid/issues/73#issuecomment-44557205 .

multani commented 10 years ago

I have the same issues described in https://github.com/warmshowers/wsandroid/issues/73#issuecomment-27226250 : when I display information about a host, I have the name of the host in the header, but all the other information are my information. If I Update the profile information (by hitting the menu button, then "Update"), the name changes with mine, and the information are still mine.

I have a Samsung Galaxy-Y with Android 2.3.6. I tried to uninstall/reinstall the application, logout/login again, clear the cache, but nothing changes.

The application used to work a few months ago (I'm pretty sure it worked correctly at the beginning of July, but I don't remember if I updated it since then (if there was an update)).

Basically, it makes the application unusable for me as I can't see host informatin :(

rfay commented 10 years ago

We continue to get regular reports of this problem, but have been unable to recreate it.

GerryN commented 10 years ago

Hi Randy,

FYI, I had it happen to me recently. I tried again the next day and the problem went away.

Gerry Newton 303-870-2319

rfay commented 10 years ago

Yay, a member gave me their credentials and I'm able to recreate this on my Galaxy S5. Now to figure out what's happening... @jstaffans if you have time to look at this I imagine the customer would be OK with passing along the credentials to you.

The sequence is:

  1. Use the text-search (second tab, the horizontal lines) to search for, say "New York"
  2. Choose any result. The name/title will be that of the host, but the "About this host" will be the searching-member's information.
rfay commented 10 years ago

Shoot, I'm unable to get a buildable version of this project together using current java tools. I wish I was more familiar with the whole android environment. I've tried Eclipse and Intellij and Android Studio, and java 6 and java 6. Ran into problems I didn't know how to solve with all of them. I would be happy to debug this if I could just get it set up.

rfay commented 10 years ago

Please take a look at #80 @jstaffans and see if you think it's up to the task. Thanks!

rfay commented 10 years ago

The reality is that this just needs the long-discussed wsuser service, https://github.com/warmshowers/Warmshowers.org/issues/416, so I'll get that deployed, and then re-implement this. Basically all the problems here are from scraping wsuser. So we'll get #69 (use the service instead of scraping) fixed, we'll get all kinds of things fixed.

rfay commented 10 years ago

The version in the related PR is working. The map doesn't display tiles, but I believe that's because google maps v1 is deprecated and I don't have the key (they don't give out keys any more)