Hello, I think this bug is just a small thing, but I rather report it.
After I drag and drop feed to category on Feeds in /prefs.php and I want to drag another I get this error:
Unhandled exception
Error: assertion failed in ItemFileWriteStore
Error: assertion failed in ItemFileWriteStore
at Object._assert (https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:16676)
at Object._setValueOrValues (https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:20649)
at Object.setValues (https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:20469)
at https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:407667
at Object.forEach (https://domain:8080/lib/dojo/dojo.js?1485331582:8:35522)
at Object.pasteItem (https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:407494)
at Object.<anonymous> (https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:421640)
at Object.forEach (https://domain:8080/lib/dojo/dojo.js?1485331582:8:35477)
at Object.onDndDrop (https://domain:8080/lib/dojo/tt-rss-layer.js?1485331582:8:421371)
at Object._19f (https://domain:8080/lib/dojo/dojo.js?1485331582:8:41980)
Same error is logged in TTRSS system log
This is content Chrome console:
So I’m completely fine move first item, error appear after first move if I try move another, or if I select category (click on checkbox icon)
If I refresh page, I can again move one item before error.
Steps to reproduce the problem:
Open /prefs.php move feed between category and try move another.
tt-rss version :
Tiny Tiny RSS v17.12 (c9a5e5a) (maybe 14 day old)
and Tiny Tiny RSS v17.12 (16325f7) (today 15.3.18)
Ubuntu server 16.04
Ubuntu 16.04 PHP 7,PostgreSQL
I was able to reproduce it on Chrome and Firefox on Windows
Thanks
the error seems to be raised within dojo code (ItemFileWriteStore is a part of it)
i can’t reproduce it
it could be related to something like special symbols in feed titles but i think it’s unlikely. i wonder what that assertion actually checks for, it would be hard to find in minified code.
hmm
Some special character is possible, I have all sort of garbage in feeds name.
For example, this is my longest feed name: "Recent posts to When upgrading I see a lot of messages "N: Ignoring file '20auto-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension""
I also tried remove all # and * from feed name but it did not help
Fortunately, this is not really a major problem
Clean test account is without problem.
I exported feeds from my main account and imported them in new test account…
And same error (assertion failed in ItemFileWriteStore)
So cause is something in my feed list.
I did some testing on test account:
When I unsubscribe from all feeds and (and left my categories unchanged) then I add single feed and try two move - same error.
If I delete my old categories - no error.
The strange thing is that I can do two moves before error. Before unsubscribing I can do only one move before error.
When I delete all categories, feed are moved to uncategorized folder, then I create category and try couple of moves - same error
So I can not find common cause because it does not behave consistently (I have to delete categories and feeds to not get error)
Maybe some “limit” ? I have 781 feeds and three levels of categories.
But maybe I spent more time on it than problem deserve
it’s really hard to answer because this is entirely dojo code
could even be the overall structure i.e. nesting, if you have it
could be category titles
btw check for server-side errors in tt-rss event log, maybe actual tt-rss code which is called when drag and drop is complete is failing and somehow causes this