You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Images hosted on files.parse.com are assumed to be "new since migration" and thus the parse-server generates a url pointing at my parse-server instead of parse.com's S3 url. These are older images, I assume before parse.com switched to the files.parsetfss.com server.
Newer images (though before migration) point to files.parsetfss.com and load OK.
Newer images (after migration) point to my server and load OK.
Example:
parse.com URL: (created a long time ago on parse.com)
http://files.parse.com/9e30bab0-73bc-44a6-b468-9e105179430a/db70e289-a9ef-4e0d-ab34-f096c424de41-image_main.jpg
parse.com and parser-server both generate the correct URL for this image:
https://files.parsetfss.com/9e30bab0-73bc-44a6-b468-9e105179430a/tfss-95a01ef5-b669-4221-8afe-18384bef442f-image_main.jpg
There is another report of this mentioned in #8 reported by @trondwernerhansen
Seems to be a problem in FilesController.js when Parse Server checks wether to use parsetfss.com or adapter for a file:
if (filename.indexOf('tfss-') === 0) {..
I have old files on Parse that do not begin with 'tfss-', and they are wrongly sent to adapter.
Looks like Parse Server does:
filename = randomHexString(32) + '_' + filename;
on any new files, so I guess a fix would be to check for that underscore, since it would never match old files.
Images hosted on files.parse.com are assumed to be "new since migration" and thus the parse-server generates a url pointing at my parse-server instead of parse.com's S3 url. These are older images, I assume before parse.com switched to the files.parsetfss.com server.
Newer images (though before migration) point to files.parsetfss.com and load OK.
Newer images (after migration) point to my server and load OK.
Example:
parse.com URL: (created a long time ago on parse.com)
http://files.parse.com/9e30bab0-73bc-44a6-b468-9e105179430a/db70e289-a9ef-4e0d-ab34-f096c424de41-image_main.jpg
parse-server URL: (does not actually exist on my S3, this file existed before migration)
http://petfetch-server.herokuapp.com/parse/files/petfetch_appid_debug/db70e289-a9ef-4e0d-ab34-f096c424de41-image_main.jp
parse.com and parser-server both generate the correct URL for this image:
https://files.parsetfss.com/9e30bab0-73bc-44a6-b468-9e105179430a/tfss-95a01ef5-b669-4221-8afe-18384bef442f-image_main.jpg
Environment Setup
Merged master 4/16/16
Steps to reproduce
Logs/Trace
The text was updated successfully, but these errors were encountered: