Comments (6)
Yes, this is currently a known issue. It's working on my iPad here, so i'm wondering what the problem might be.
Please try to change DEBUG_USER
in fever_api.php
with your user id from the users table you would like to test and post if it works then. After that change it back to 0, since setting DEBUG_USER
disables the authentication.
It seems that the iPad does not safe/get the cookie the PHP script sets.
from tinytinyrss-fever-plugin.
Please look also in the TinyTinyRSS forum for more informations...
http://tt-rss.org/forum/viewtopic.php?f=22&t=1981
from tinytinyrss-fever-plugin.
I have the same problem
In fever_api.php line 735,I add the code:
file_put_contents(self::DEBUG_FILE,'ss: '.json_encode($_SESSION)."\n",FILE_APPEND);
The log is
parameter: {"manage":"statuses","mark":"item","as":"read","id":"15887","13724666
74766":""}
ss: null
parameter: {"api":"","links":"","range":"1","offset":"0","page":"1","api_key":"D
******"}
ss: {"uid":"1"}
answer : {"api_version":3,"auth":1,"last_refreshed_on_time":"1372466610","link
s":[]}
parameter: {"manage":"statuses","mark":"item","as":"read","id":"15887","13724667
14849":""}
ss: null
parameter: {"manage":"statuses","mark":"item","as":"read","id":"15887","13724667
16966":""}
ss: null
parameter: {"manage":"statuses","mark":"item","as":"read","id":"15887","13724667
18800":""}
ss: null
The $_SESSION is null when mark a item as read...
Add a new line
file_put_contents(self::DEBUG_FILE,'cookie: '.json_encode($_COOKIE)."\n",FILE_APPEND);
The log is
parameter: {"manage":"statuses","mark":"item","as":"read","id":"15944","13724689
70939":""}
ss: null
cookie: {"fever_auth":"*********"}
answer : {"api_version":3,"auth":0}
parameter: {"api":"","groups":"","api_key":"****************"}
ss: {"uid":"1"}
cookie: []
SO the api method has $_SESSION no $_COOKIE,but the manage method has $_COOKIE no $_SESSION.
from tinytinyrss-fever-plugin.
I think I fix the problem.
$_REQUEST on newer PHP setups contains only $_GET and $_POST.
--- a/fever/fever_api.php
+++ b/fever/fever_api.php
@@ -120,6 +120,10 @@ class FeverAPI extends Handler {
private function setUser()
{
$apikey = isset($_REQUEST["api_key"])?$_REQUEST["api_key"]:'';
+ if($apikey == '')
+ $apikey = isset($_COOKIE["fever_auth"])?$_COOKIE["fever_auth"]:'';
+
// here comes Mr.Reader special API for logging in
if ((strlen($apikey)==0)&&
(isset($_REQUEST["action"]))&&
from tinytinyrss-fever-plugin.
Just applied this patch and it works!
Thanks wjchen 👍
from tinytinyrss-fever-plugin.
I've created a PR for this: #3
Even though I fixed it slightly differently, @wjchen is correct in that request_order in php.ini is now recommended to be GP and so $_REQUEST doesn't include cookie information on a lot of installations.
from tinytinyrss-fever-plugin.
Related Issues (19)
- Support for Press 1.4 HOT 8
- Press sync read status HOT 2
- "Login failed" when server on https HOT 1
- Not working with latest Press on Android HOT 2
- Update version number in init.php
- Hot Labels HOT 3
- Cannot Login from Reeder HOT 13
- Network connection error on every sync with Press 1.5.4 HOT 4
- Multiple accounts in Reeder HOT 11
- Problems with auth_ldap
- Mark all as read function doesn't work
- get_article_enclosures error
- Undefined function ccache_update() since latest updates to tt-rss code HOT 3
- Feeds no longer sync to Reeder for iOS after updating TT-RSS and Fever HOT 7
- Unable to login with Reeder HOT 5
- Uncaught Error: Class 'CCache' not found HOT 1
- "Query Failed" when changing password on Heroku HOT 4
- Wrong Timestamp of feeditems in Reeder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinytinyrss-fever-plugin.