parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Uploading new files post migration to own s3 bucket not saving on parse.com

Open kvreem opened this issue 10 years ago • 9 comments

  • Server: parse server, heroku for deployment
  • Database: mLab shared plan
  • iOS application Parse 1.13 written in swift

Problem Occurs When:

  • User who is on new infrastructure changes their profile picture
  • A new user signs up on new infrastructure and uploads there own profile picture

Problem: On my new infrastructure all new files are being stored in my s3 bucket. All users who haven't updated will not be able to see these changes. I looked at the parse.com dashboard to see what was happening and this was what I found.

screen shot 2016-05-16 at 11 12 01 am

The file that says "ilePicture.png" is the newly changed file. So it is updating that column in my database. However when I go to download it I get this:

screen shot 2016-05-16 at 11 12 09 am

For users on the new infrastructure they can get the new and old files. But for those who have not updated they cannot see the new s3 files.

kvreem avatar May 16 '16 18:05 kvreem

Probably related to https://github.com/ParsePlatform/parse-dashboard/issues/351

drew-gross avatar May 16 '16 19:05 drew-gross

@drew-gross can you elaborate what they mean by use indexOf? My app is an iOS app on Parse SDK 1.13. Would the way I save the files changes in my client code? Or is this a change in parse-server itself?

kvreem avatar May 16 '16 19:05 kvreem

This appears to be a duplicate of issue https://github.com/ParsePlatform/parse-server/issues/1582

hramos avatar May 16 '16 19:05 hramos

@hramos any idea on the time frame or if a fix can be posted here on the comments? @flovilmart said he was looking at it 25 days ago

from https://github.com/ParsePlatform/parse-dashboard/issues/351

"Possible solution is to avoid the length based calculation, and use indexOf(""), and this will be a good solution for it, but needs to check first if tfss is found, since there, theres no "" separating the name from the uuid."

kvreem avatar May 16 '16 19:05 kvreem

@Kkhattab did't get a chance to have a look

flovilmart avatar May 16 '16 20:05 flovilmart

@flovilmart no problem, i am currently blocked from pushing the migrated version until then, my team and i found that reverting back to the previous version and trying to change the image immediately crashes the app. i can follow up again here, any estimated time frame?

kvreem avatar May 16 '16 21:05 kvreem

I'll go ahead and close this, feel free to continue the discussion in #1582. I don't think the issue is being actively worked on at this time, but we'd be happy to take a look at any pull request you may send our way to address it.

hramos avatar May 17 '16 21:05 hramos

@hramos forgive me if i am mistaken but looking at the discussions and related issues this seems to be a big deal. Could a time range be estimated for this issue? It can be very insightful for other people who come across this issue to know. Thanks!

kvreem avatar May 17 '16 22:05 kvreem

@hramos just wanted to check up on this issue, any status updates? any alternative solutions in the mean time? thanks!

kvreem avatar Jun 01 '16 00:06 kvreem