Plex for Samsung 2.002 Illegal sort field sent to PMS for photos

samsung-smart-hub

#1

Scrolling down to the Photos Library, moving cursor to first displayed composite icon for a photos folder (first recently added), request from Plex for Samsung 2.002 to PMS 0.9.12.1 fails because it is using an invalid sort field for the request

 

May 25, 2015 14:21:06:306 [13480] DEBUG - [PlexforSamsung] [Main.js] - ################# Starting Gridview #################
May 25, 2015 14:21:06:308 [14100] DEBUG - [PlexforSamsung] [Main.js] - LOADING [Main.onLoadGridView] , direction: forward
May 25, 2015 14:21:06:308 [13516] DEBUG - [PlexforSamsung] [Main.js] - Main.nextPageUrl: http://192.168.1.82:32400/library/metadata/93219/children
May 25, 2015 14:21:06:309 [14256] DEBUG - [PlexforSamsung] [Main.js] -  onLoadGridView getfilterUrl: [192.168.1.82:32400/library/metadata/93219/children/all?sort=%3Adesc]
May 25, 2015 14:21:06:310 [13480] DEBUG - [PlexforSamsung] [Pager.js] - Pager url: http://192.168.1.82:32400/library/metadata/93219/children/all?sort=%3Adesc&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
May 25, 2015 14:21:06:311 [14100] DEBUG - [PlexforSamsung] [Content.js] - Content URL: [192.168.1.82:32400/library/metadata/93219/children/all?sort=%3Adesc&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&X-Plex-Container-Start=0&X-Plex-Container-Size=18]
 
May 25, 2015 14:21:06:329 [13420] DEBUG - Request: [192.168.1.79:50424] GET /library/metadata/93219/children/all?sort=%3Adesc&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&X-Plex-Container-Start=0&X-Plex-Container-Size=18 (8 live) GZIP
May 25, 2015 14:21:06:330 [13420] VERBOSE -  * sort => :desc
May 25, 2015 14:21:06:330 [13420] VERBOSE -  * X-Plex-Token => xxxxxxxxxxxxxxxxxxxx
May 25, 2015 14:21:06:330 [13420] VERBOSE -  * X-Plex-Container-Start => 0
May 25, 2015 14:21:06:330 [13420] VERBOSE -  * X-Plex-Container-Size => 18
May 25, 2015 14:21:06:333 [11448] DEBUG - [PlexforSamsung] [Main.js] - view: grid load completed.
May 25, 2015 14:21:06:335 [13420] DEBUG - Setting container serialization range to [0, 17] (total=-1)
May 25, 2015 14:21:06:335 [13420] ERROR - Exception handled: Invalid field for sort: 
May 25, 2015 14:21:06:336 [5784] DEBUG - Completed: [192.168.1.79:50424] GET /library/metadata/93219/children/all?sort=%3Adesc (8 live) GZIP Page 0-17 46ms 368 bytes 500 (pipelined: 25)
 
May 25, 2015 14:21:06:499 [13480] DEBUG - [PlexforSamsung] [Content.js] - Content Create ContentList
May 25, 2015 14:21:06:500 [14100] DEBUG - [PlexforSamsung] [Content.js] - Media XML Server Error 500
May 25, 2015 14:21:06:501 [13420] DEBUG - [PlexforSamsung] [Content.js] - an error occured
May 25, 2015 14:21:06:503 [13480] DEBUG - [PlexforSamsung] [Content.js] - Error: 
May 25, 2015 14:21:06:504 [13456] DEBUG - [PlexforSamsung] [Content.js] - Internal server error
 
I suspect this sort is not valid in this context or for the selection ?
 
Error message on screen is
 
There seems to be a problem
Request could not be completed 
The server reported back with an error
 

#2

Could you tell me the reproduce steps, I can't seem to reproduce this on the latest version.


#3

Fixed in 2.002 !

I thought i had 2.002 but was 2.001 when Samsung Apps told me it was 2.002. Uninstall and Re-Install successfully installed 2.002. The Automatic Update obviously went wrong and was actually 2.001 even when Samsung Apps said 2.002 was installed

Now Request is done as

GET /library/metadata/93219/children/all?sort=titleSort%3Aasc

In 2.001 it was done as

GET /library/metadata/93219/children/all?sort=desc

and

GET /library/metadata/93219/children/all?sort=%3Adesc