austgl / android-shuffle

Automatically exported from code.google.com/p/android-shuffle
0 stars 0 forks source link

Tracks synching failed due to wrong parameter. #234

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Enable (verbose) logging on the tracks 1.7 server
2.Create a new context on shuffle
3.Sync with tracks
4.See an error in tracks: ActiveRecord::UnknownAttributeError: unknown 
attribute: state

What is the expected output? What do you see instead?
Correct synching expected, an error breaks this. 

What version of the product are you using? On what operating system?
Latest stable shuffle 1.7.0 android gingerbread.
Tracks 1.7.3

Please provide any additional information below.

Tracks indeed has no such parameter "state". Instead it uses a parameter "hide" 
set to TRUE or FALSE. 
Tracks does not validate against not-allowed parameters, but instead issues a 
500 error when they are provided. In verbose logging, being raised as 
"ActiveRecord::UnknownAttributeError". 

This /could/ be the cause of several of the synching errors as mentioned in 
other issues.

Original issue reported on code.google.com by websch...@gmail.com on 7 Apr 2011 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by andybry...@gmail.com on 12 Apr 2011 at 8:53

GoogleCodeExporter commented 9 years ago
It seems that not only contexts fail due to this bug, but actions too, since 
they have associated contexts (that failed to sync).

Added a traceback from tracks that shows the error in more detail.

Original comment by websch...@gmail.com on 25 May 2011 at 8:02

Attachments:

GoogleCodeExporter commented 9 years ago
Additional information from the tracks documentation

  # Example XML usage: curl -H 'Accept: application/xml' -H 'Content-Type:
  # application/xml'
  #                    -u username:password
  #                    -d '<request><context><name>new context_name</name></context></request>'
  #                    http://our.tracks.host/contexts
  #

Original comment by websch...@gmail.com on 24 Jun 2011 at 1:44

GoogleCodeExporter commented 9 years ago
Still a but in 1.7.1

Original comment by websch...@gmail.com on 24 Jun 2011 at 1:46

GoogleCodeExporter commented 9 years ago
Can be fixed with patch from issue 268. (Sorry didn't see this issue before I 
created 268. Otherwise would've added the patch to this issue).

Original comment by jaakko.s...@gmail.com on 12 Sep 2011 at 5:32