Project

General

Profile

Bug #5317

Persistent authentication with user restricted to channel tags results in empty playlist

Added by Dietmar Konermann about 6 years ago. Updated about 6 years ago.

Status:
Fixed
Priority:
Normal
Category:
Streaming
Target version:
-
Start date:
2018-11-06
Due date:
% Done:

100%

Estimated time:
Found in version:
4.3-1524~gacf50bd
Affected Versions:

Description

- Create a user limited to channels with specific channel tag
- Configure a password with the new Persistent authentication

$ curl -L --digest "http://user:pass@server:9981/playlist"

-> works fine, playlist contains the tagged channels.

curl -L "http://server:9981/playlist?auth=xxxxxxx"
#EXTM3U

> playlist is empty
> even using both, user/pw AND auth= results in an empty playlist

If you use the reverse logic "Exclude channel tags", then all channels are included... so obviously the configured tags are just being ignored at all when auth= is used.

Thanks in advance
Dietmar.

History

#1

Updated by saen acro about 6 years ago

second url is wrong
try with

curl -L --digest "http://user:pass@server:9981/playlist/auth

#2

Updated by Dietmar Konermann about 6 years ago

OK, that works.

Nevertheless, the current behaviour is at least inconsistent IMHO... either we should get a 404 or the correct playlist... why an empty one?

It's also weird that the resulting playlist contains profile=xxx for a profile the user has no access to. OK, I can add the profile to my URLs, but it's also inconsistent. Leave it, or use a working one.

However, thanks. Guess I can deal with that. :)

Cheers
Dietmar.

#3

Updated by saen acro about 6 years ago

From my point of view problem is with poor or missing information in wiki,
where any one can take information.

#4

Updated by Jaroslav Kysela about 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|29d501042a38b1070756db2e08bda433b182078c.

#5

Updated by Pablo R. about 6 years ago

Jaroslav Kysela wrote:

Applied in changeset commit:tvheadend|29d501042a38b1070756db2e08bda433b182078c.

Is this commit applied correctly? From time to time I get subscriptions without username :'(

(It has never happened to me before)

Also available in: Atom PDF