Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect button #736

Closed
OpenCode opened this issue Jul 11, 2013 · 14 comments
Closed

Connect button #736

OpenCode opened this issue Jul 11, 2013 · 14 comments

Comments

@OpenCode
Copy link

Often, if I visit a profil of a friendica contact (one of mine) I can see on its profile the button "Connect" but I'm alredy connected with this user.

@ghost
Copy link

ghost commented Jul 11, 2013

It only happens if you're not authenticated. If you're not authenticated, we don't know who you are and therefore, cannot modify content based on who you are.

@OpenCode
Copy link
Author

I'm authenticated!

@ghost
Copy link

ghost commented Jul 11, 2013

Okay, so cannot reproduce.

Which theme? Are there any public forums this can be reproduced with (so we can test it without having to annoy an individual user)?

@OpenCode
Copy link
Author

My theme is quattro..I don't know when this happens. It's random.

@fabrixxm
Copy link
Collaborator

In friendica you need to be authenticated as contact on your contact's server.
To do this, you need to visit your contact profile page clicking on a "magic link" (link on you contact's photos are "magic": the cursor change his shape and the link is something like "blabla/redir/123".
"magic" happens and you are authenticated on you contact's profile page, where (with permissions) you can post a wall-to-wall message directly, like posts and so on. You auth is valid until you close the browser. If you don't close the browser and go back to contact's profile page, you'll be still authenticated...

If, instead, "connect" button is shown with the "welcome" message or while the input box is on the page, that is a bug..

@fabrixxm
Copy link
Collaborator

no updates, no other confirmation of a bug. can I close this?

@OpenCode
Copy link
Author

I've the some problem now

@fabrixxm
Copy link
Collaborator

@OpenCode can you write exactly how you can reproduce the bug?

@OpenCode
Copy link
Author

This is a strange bug. Sometime, when I visit a friendica profile, I see the connexct button but the user is a contact for me, yet. I can tell you how to reproduce the bug. Try to visit your contact profile and you can see this bug maybe.

@FX7
Copy link

FX7 commented Dec 10, 2013

I have the same problem. But now its not only happening sometimes, it happens all the time. For every contact in my contact list i see the connect button and cant post to the wall.
Also the Network page seems to be way behind. Talked to some of my contacts and they didnt see the latest posts.
I tried it with different browsers (Firefox an Chromium). My Desktop OS is Ubuntu 12.04.
My server is running Ubuntu 12.04 for Server.
Which log-files can i post / lock? Where exactly is the auth process happening? So maybe i could take a look and analyse it more by myself?
Would be very glad for any help!

@FX7
Copy link

FX7 commented Dec 17, 2013

I finally debugged the problem and also got a solution for me!

But first an detailed description of what my settings are:
I run friendica on my Ubuntu 12.04 Server (Apache, Mysql, PHP). For now I only have inner server contacts (only contacts from my own server). As I don't have a real domain, I only have a dyndns Account / domain. Therefore I also have no correct certificate. I only got a self signed certificate for my server. So I checked the "ignore ssl" in my Friendica settings.

What happend:
All of a sudden I couldn't write to the wall of my contacts and didnt see what contacts write on their wall in my network page. Everytime I visited the profile of one of my contacts I saw the "connect" button as if i wouldn't be already connected with them. If I tried to connect myself to a new contact, I got an "invalid profile" error.

So what was this all about:
The problem seems to be a recently php update. As I looked out in the include/network.php file, Friendica uses php-curl for the post and get requests. On Line 53 and 160 the property "verifyssl" was used to set the curl property "CURLOPT_SSL_VERIFYPEER". All this was set correctly (my protery is set to 0 and was resolved to CURLOPT_SSL_VERIFYPEER false).
But all requests to my dyndns domain via https wasnt resolved! I got no error, no http_result code: nothing!
As i said: I think an recently php update was the cause.

And here is my solution:
I just added the two extra options CURLOPT_SSL_VERIFYHOST 1 and CURLOPT_CAINFO path_to_my_ca if the url is an internal url. After this fix all server-internal requests could be send and answered corretly. I can see all posts of my contacts again and the connect button is not visible on the profile page of my contacts.

Maybe it would be a more wider soultion, to add somekind of certificate storage, where u can add self-signed certificates for specific domains and use them for verification instead of just saying "dont do any checks"?

As I said: For me the above description solved the problem :-)

@AlfredSK
Copy link

This issue is giving the impression of a conceptional misunderstanding. ;-) Also, I cannot reproduce this. I think this should be closed.

@Beanow
Copy link

Beanow commented Sep 7, 2014

Cannot reproduce here either.
Connect only shows up through cookie blocking or directly navigating to a profile instead of the redir from your site.

@annando
Copy link
Collaborator

annando commented Sep 7, 2014

This issue should have been solved in one of the past pull requests. If it doesn't work by now, please tell.

@annando annando closed this as completed Sep 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants