tontof / kriss_feed

A simple and smart (or stupid) feed reader
280 stars 54 forks source link

Unable to sign in, no error message #331

Open k0ral opened 10 years ago

k0ral commented 10 years ago

Hello,

I've recently upgraded my kriss feed instance to v8, and I've been unable to sign in since then. There is no error message, simply nothing happens when validating the sign in form, even after clearing the browser's cache and erasing cookies.

Browsers tested: Firefox, Chrome Version impacted: only v8, as switching back to v7 effectively fixes the issue

Thank you for your support :) .

tontof commented 10 years ago

Clearing the cookies should do the trick. I have no idea why it does not work if you've done it right. Did you try with the dev version ? https://github.com/tontof/kriss_feed/raw/master/src/index.php

Think to back up before testing even if it should be ok to test without problem

k0ral commented 10 years ago

I've better isolated the problem.

My webserver is behind a sslh proxy : the latter listens on the usual web ports (80 & 443) and forwards the relevant requests to the former, which listens on a custom port (7443 in my case). Removing the sslh layer effectively fixes the issue, so I suspect there is something wrong in the way kriss feed handles URI redirection with regards to the port.

As I said in the first message, there is no error message when I try to log in, however I noticed that the URI I'm redirected to ends in ":7443", which looks wrong to me : I should never have request this port directly. That might be related to the issue.

tontof commented 10 years ago

Can you try to replace the getUrl function content from https://github.com/tontof/kriss_feed/blob/master/index.php#L4155 with https://github.com/sebsauvage/Shaarli/blob/master/index.php#L451 in your index.php ?

Otherwise I guess you should use a plugin with the expected url as for: https://github.com/tontof/kriss_feed/issues/241#issuecomment-23611458

k0ral commented 10 years ago

First trick didn't work. Second one works fine, thank you :) .

tontof commented 10 years ago

Cool !