Page 1 of 1

folder view - case sensitive bug?

PostPosted: Thu Mar 24, 2016 9:35 am
by Cybmole
this has been driving me nuts for a while but eventually I figured out what is happening.
I ahve a tv servies folder on server PC, in there i have one folder per show.

when I use folder view in any client I see a bunch of "alphabetical" folders, followed by a 2nd bunch, also apparently alphabetical.

what the server is doing is placing folders with names beginning with A-Z in front of any that begin a-z, thus "Deadwood" & "X-files" precede "band of brothers" & "colony" in a folder view
is that a bug or a feature ?
it should be easy to reproduce, for any Windows server install. I have v1.6 in windows 10.
its hard to work around because windows ignores case, mostly, so forcing renames to be capitalised needs some trickery. a superficial change in file exporer does not change the case of Serviio server's internal records, apparently.
if i use the workaround of changing the folder name text, then changing it back again, then the server library refresh takes ages to re-orgainise itself so for a while I am seeing doub entries folders in the client's folder view e.g. both "Monarchy" and "monarchy"

my suggestion woudl be for the server to sort folders, ignoring case, and thus deliver a well sorted folders view list.
PS The "series" view is OK as that sorts on metadata values, so it does not have this upper/lower case issue

Re: folder view - case sensitive bug?

PostPosted: Thu Mar 24, 2016 12:59 pm
by DenyAll
One for @zip to look at, but I tested and confirmed. Never noticed this before - like you, I would prefer it sorted ignoring case.

then the server library refresh takes ages to re-orgainise itself so for a while I am seeing double entries folders in the client's folder view e.g. both "Monarchy" and "monarchy"
Monitoring the log file, this is because the "new" files are all added to the library first, which can be quite slow, before the old file references are removed. So for quite a while, both old and new references are in the library (and of course, the old reference won't play as the file no longer exists).
Perhaps it would be better if Serviio processed the deletions first, which is quite fast, and then the additions (I recall some discussion in the past on the order things happen, but cannot recall the details - so this may not be possible).

Re: folder view - case sensitive bug?

PostPosted: Thu Mar 24, 2016 1:40 pm
by zip
Please create a ticket for the fix

Re: folder view - case sensitive bug?

PostPosted: Thu Mar 24, 2016 10:42 pm
by DenyAll
Created #932: Ignore case when sorting - Folder view and #933: Process deletions prior to additions in library.

Re: folder view - case sensitive bug?

PostPosted: Fri Mar 25, 2016 8:36 am
by Cybmole
i was about to ask " duh - how do I create a ticket" but I see some kind person has done that already

I can confirm that after letting the server have a couple of hours to complete its updates, my renamed tv series folder are now showing correctly, and I have worked around the case issue via lots of consistent renaming.

how will we be notified what a proper fix is in place, will that be viarelease notes for some future release ?

Re: folder view - case sensitive bug?

PostPosted: Fri Mar 25, 2016 11:20 pm
by DenyAll
Yes via release notes or you can monitor the issue at https://bitbucket.org/xnejp03/serviio/i ... older-view