Closed hemith closed 4 years ago
Hi @hemith , Thanks for reporting!
Possibly yes, because I'm not sure that we tested that logic with not the English language. Could you please test this PR and verify if it fixes your issue? https://github.com/microsoft/react-native-code-push/pull/1843 Please let me know your result or if you have any questions.
Hi @hemith ,
I'm going to close this issue for now as I haven't heard from you in a while, unfortunately. Please feel free to reopen it if you have any questions.
@alexandergoncharov-zz @hemith
I was just having the same problem. I removed the image files with Korean names that were stored in src-assets-images, updated the codepush, and accessed the app with an iOS device that was not receiving codepush, and the codepush was applied.
It seems that the file name and codepush are related. https://github.com/lisong/code-push-server/issues/174 this issue opner also mentioned about file name.
Hi @heeyoonjik thank you for reaching out. Could you please share which react-native-code-push version are you using and also react-native version?
Steps to Reproduce
Expected Behavior
The update contents download and install
Actual Behavior
Update(a zipped file contained main.jsbundle) is downloaded but is not installed. print this log message. https://github.com/microsoft/react-native-code-push/blob/352995d3cfaa9c6c180c7eabe2186dac7a82763d/ios/CodePush/CodePushPackage.m#L295
expectedHash and updateContentsManifestHash is different.
https://github.com/microsoft/react-native-code-push/blob/352995d3cfaa9c6c180c7eabe2186dac7a82763d/ios/CodePush/CodePushUpdateUtils.m#L286
Environment
Additional Information
How I solved..
After I rename file from Korean(UTF8) to English(ASCII). Then Expected hash and actual hash is matched. and codepush is working properly
https://github.com/microsoft/react-native-code-push/blob/352995d3cfaa9c6c180c7eabe2186dac7a82763d/ios/CodePush/CodePushUpdateUtils.m#L91
Question
computeFinalHashFromManifest function return value is incorrect when an image filename(in manifast variable) have UTF8 characters in iOS environment ? Is this a bug?
https://github.com/microsoft/react-native-code-push/blob/352995d3cfaa9c6c180c7eabe2186dac7a82763d/ios/CodePush/CodePushUpdateUtils.m#L79