GitHub Issue | n/a |
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-07-07T17:59:36.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | Release 3.3.0, Release 3.4.0 |
Components | Cloud, iOS |
Labels | module_acs, qe-3.3.0, qe-testadded, regression |
Reporter | Kajenthiran Velummaylum |
Assignee | Pedro Enrique |
Created | 2014-07-01T10:07:54.000+0000 |
Updated | 2014-07-07T18:57:09.000+0000 |
*Cloud.Photos.update* function is not working for the photos from Gallery or Camera.
It's throwing *Invalid photo file type* error. Please refer attached screenshot.
If the new photo is assigned through an image file instead of a blob from camera or gallery then it works fine.
Steps To Reproduce
1. Create a default titanium classic app
2. Copy the app.js and windows folder from "~/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.3/example" into the Resources directory of the project.
3. Install and launch app on iOS device
4. Create a user from Users > Create User
5. Create a photo from Dashboard as the current user of your app is owner of that photo.
6. Press back button twice and go to Photos > Query Photo
7. Select the photo that you created from dashboard.
8. Press "Update Photo" button
9. Press "Select Photo from Gallery" or "Take Photo with Camera" to select/take a photo and use it
10. Add some text for tag field.
11. Press Update button.
Actual Result
Invalid photo file type error is thrown. (See attachment)
Expected Result
Photo should be updated correctly.
PR for master: https://github.com/appcelerator/titanium_mobile/pull/5885 PR for 3.3.x: https://github.com/appcelerator/titanium_mobile/pull/5886
Verified fixed on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.3.0.201407031747 Titanium SDK, build: 3.3.0.v20140707105712 Titanium CLI, build: 3.3.0-rc4 Alloy: 1.4.0-rc4 iOS Device: iPhone 5 (7.0.6) Followed test steps provided in the description. Photo is successfully updated with the correct tags. Closing.