Filter on Title Only is Matching Title or Content

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
onyxfox
Bear Rating Trainee
Bear Rating Trainee
Posts: 18
Joined: 19 Mar 2013, 11:54

Re: Filter on Title Only is Matching Title or Content

Postby onyxfox » 31 Mar 2013, 01:40

I am using no negative regex right now, though I have been wanting to implement some.

Okay, this is very interesting and odd! I dropped in your logging script, and have let it run twice inside of the if ($filter_match) { } clause, and it logged several entries, all of which were correct matches. Not a single false positive in the log. When I go to the frontend and view the feeds, there are false postives listed, as if the filter had matched them.

I decided to do one other check just to see if a broader logging would reveal anything, and I put your logging code into a if ($match) { } clause. This caused a lot more matches of course, but none of the false positives were in that log file either, but they do still show up when using the frontend of tt-rss.

So now I'm even more confused. It is as if there is filter matching going on somewhere else in the code...

Edit: I will be unavailable for a while, but will report back any new findings when I return.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 14:11

I have this issue, too:

i have a filter defined that matches on 2013 on title of a specific group (video) and assigns a tag "Aktuell" (german for recent). An article in a total different group is marked as "Aktuell", because ist contains "2013" in the body.
Attachments
wrong body.png
wrong matching body
wrong body.png (35.43 KiB) Viewed 2495 times
wrong item.png
wrong tagged item
wrong item.png (7.03 KiB) Viewed 2495 times
filter.png
Filter definition
filter.png (11.46 KiB) Viewed 2495 times

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 15:40

:-)
Attachments
smile.png
smile.png (14.66 KiB) Viewed 2478 times

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Filter on Title Only is Matching Title or Content

Postby fox » 30 May 2013, 15:47

I recall another thread with debugging instructions for this, but the results were inconclusive.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 16:22

ah, btw, i added your logging-patch from this thread before this post was done. In the logfile i cannot find any hit on an article containing "Matching" or "Content".

so, at least this tag does not come from rssfuncs.php, line 1283 (if ($filter_match) {)

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Filter on Title Only is Matching Title or Content

Postby fox » 30 May 2013, 16:26

It is a mystery to me. There may well be a bug in the filter logic, but I can't figure it out. Maybe someone else should take a stab at it.

Edit: I can't replicate it which doesn't help either.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 16:28

is it correct, that the labes to articles are stored in ttrss_user_labels2 ?

If so, there is no bug in the filter engine, but in the display-engine:

Code: Select all

SELECT id FROM `ttrss_entries` WHERE title like '%Title or Content%' and author = 'macfly' order by date_entered desc limit 1
-> 79352

SELECT * FROM `ttrss_user_labels2` where article_id = 79352
-> empty


User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Filter on Title Only is Matching Title or Content

Postby fox » 30 May 2013, 16:30

Labels are cached in ttrss_entries.label_cache, maybe that gets assigned wrong somehow.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Filter on Title Only is Matching Title or Content

Postby fox » 30 May 2013, 16:32

If you remove the wrong label does it reassign itself on the next feed update? If so, I might need your database dump.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 16:36

i removed the wrong label, signed out, signed in, the label was there again.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 16:42

fox wrote:Labels are cached in ttrss_entries.label_cache, maybe that gets assigned wrong somehow.


you are speaking of ttrss_user_entries, right?

maybe, somewhere int_id and ref_id are swapped?

Code: Select all

SELECT label_cache FROM `ttrss_user_entries` where `int_id` = 79352
-> [["5","HD","#e0ffff","#0000ff"]]

SELECT label_cache FROM `ttrss_user_entries` where `ref_id` = 79352
-> empty

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Filter on Title Only is Matching Title or Content

Postby fox » 30 May 2013, 16:47

Could be. Can you dump your database and PM me the url?

Edit: probably not, otherwise you'd see the previously mentioned label which wasn't "HD". I think.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 16:51

yes. right now i have to move to the next meeting, will dump the database after i finished work.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Filter on Title Only is Matching Title or Content

Postby fox » 30 May 2013, 18:13

Well, this was easy. You have "auto assign articles to labels" option enabled, which gets keywords from article content. Maybe having this on by default was a bad idea, I'll switch this option to default to off for the next version.

This might need a FAQ entry or something.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Filter on Title Only is Matching Title or Content

Postby macfly » 30 May 2013, 18:32

jupp, agree.

i unchecked this option and
remove the wrong label, signed out, signed in and the wrong label did not appear again as before.

thank you!


Return to “Support”

Who is online

Users browsing this forum: No registered users and 8 guests