{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/616","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/616/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/616/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/616","id":135929631,"number":616,"title":"Script Error Tried to save an object containing an unsaved file.","user":{"login":"nitrag","id":197010,"avatar_url":"https://avatars.githubusercontent.com/u/197010?v=3","gravatar_id":"","url":"https://api.github.com/users/nitrag","html_url":"https://github.com/nitrag","followers_url":"https://api.github.com/users/nitrag/followers","following_url":"https://api.github.com/users/nitrag/following{/other_user}","gists_url":"https://api.github.com/users/nitrag/gists{/gist_id}","starred_url":"https://api.github.com/users/nitrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitrag/subscriptions","organizations_url":"https://api.github.com/users/nitrag/orgs","repos_url":"https://api.github.com/users/nitrag/repos","events_url":"https://api.github.com/users/nitrag/events{/privacy}","received_events_url":"https://api.github.com/users/nitrag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-24T02:18:58Z","updated_at":"2016-02-24T22:12:35Z","closed_at":null,"body":"I have two ParseFiles in my Parse.User class. ProfilePic and CoverPhoto.\r\n\r\nI've started migration over to Compose.io DBaaS. I've got Parse-Server up and running locally pointing to Compose. That's all working and I can login with a simple test user.\r\n\r\nWhen logging in with a user who does NOT have any old files attached to _User (test user) the login is successful. However, when logging into a _User who still has these old files (on parse s3?) I get this error:\r\n\r\n```\r\n[ERROR] :  Script Error Tried to save an object containing an unsaved file.\r\n```\r\n\r\n```\r\n//Server side, with verbose=1 returns the full object\r\n....\r\n  \"coverPhoto\": {\r\n    \"__type\": \"File\",\r\n    \"name\": \"tfss-2f7fb0bd-d9e6-4ec0-b20b-80405491afcb-cover.jpg\"\r\n  },\r\n...\r\n```\r\n\r\n\r\nIf I delete the coverPhoto key in the database the error goes away so I know it's the old files causing it.\r\n\r\nI'm guessing fileKey is supposed to grabbing the file? And it's not? There's no failure in the server side. I have confirmed that the fileKey option is set correctly and and appId matches Parse.com.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/188475260","html_url":"https://github.com/ParsePlatform/parse-server/issues/616#issuecomment-188475260","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/616","id":188475260,"user":{"login":"nitrag","id":197010,"avatar_url":"https://avatars.githubusercontent.com/u/197010?v=3","gravatar_id":"","url":"https://api.github.com/users/nitrag","html_url":"https://github.com/nitrag","followers_url":"https://api.github.com/users/nitrag/followers","following_url":"https://api.github.com/users/nitrag/following{/other_user}","gists_url":"https://api.github.com/users/nitrag/gists{/gist_id}","starred_url":"https://api.github.com/users/nitrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitrag/subscriptions","organizations_url":"https://api.github.com/users/nitrag/orgs","repos_url":"https://api.github.com/users/nitrag/repos","events_url":"https://api.github.com/users/nitrag/events{/privacy}","received_events_url":"https://api.github.com/users/nitrag/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T22:12:35Z","updated_at":"2016-02-24T22:12:35Z","body":"Hmm../users?\r\n\r\nI'm using JS SDK 1.5.\r\n\r\nPOST /1/users { host: 'localhost:1337',\r\n  'content-type': 'text/plain',\r\n  'accept-language': 'en-us',\r\n  'accept-encoding': 'gzip, deflate',\r\n  connection: 'keep-alive',\r\n  accept: '*/*',\r\n  'user-agent': 'Appcelerator Titanium/5.1.1 (iPhone/9.2; iPhone OS; en_US;)',\r\n  'content-length': '505',\r\n  'x-titanium-id': 'ff9422b7-2258-4a97-9fff-8021dee1df65',\r\n  'x-requested-with': 'XMLHttpRequest' } {\r\n  \"authData\": {\r\n    \"facebook\": {\r\n      \"id\": \"asdf\",\r\n      \"access_token\": \"asdf\",\r\n      \"expiration_date\": \"2016-04-23T22:43:58.334Z\"\r\n    }\r\n  }\r\n}\r\nresponse: {\r\n  \"objectId\": \"15QSQgv93Z\",\r\n  \"authData\": {\r\n    \"facebook\": {\r\n      \"access_token\": \"asdf\",\r\n      \"expiration_date\": \"2016-04-23T22:43:57.309Z\",\r\n      \"id\": \"asdf\"\r\n    }\r\n  },\r\n  \"createdAt\": \"2015-03-12T14:25:59.049Z\",\r\n  \"updatedAt\": \"2016-02-24T03:46:04.326Z\",\r\n  \"username\": \"asdf\",\r\n  \"sessionToken\": \"r:asdf\",\r\n  \"first_name\": \"Ryan\",\r\n  \"profilePicThumbnail\": {\r\n    \"__type\": \"File\",\r\n    \"name\": \"tfss-cebaa433-bc3a-437e-b8cf-b6348e846d2b-thumbnail.jpg\"\r\n  }\r\n}\r\n"}}