cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8740) Mobile Spec Camera test can't find the photo, keeps finding directory
Date Wed, 01 Apr 2015 18:04:55 GMT

    [ https://issues.apache.org/jira/browse/CB-8740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391108#comment-14391108
] 

ASF subversion and git services commented on CB-8740:
-----------------------------------------------------

Commit 23dbb8889adb060e1334058925b2a2bf4ceeb5d5 in cordova-plugin-camera's branch refs/heads/master
from [~bowserj]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-camera.git;h=23dbb88 ]

CB-8740: Removing FileHelper call that was failing on Samsung Galaxy S3, now that we have
a real path, we only need to update the MediaStore, not pull from it in this case


> Mobile Spec Camera test can't find the photo, keeps finding directory
> ---------------------------------------------------------------------
>
>                 Key: CB-8740
>                 URL: https://issues.apache.org/jira/browse/CB-8740
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, mobile-spec, Plugin Camera
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>
> I tried to accept a pull request from a user, and I have no idea if it works, because
it appears that the Camera API is broken and it doesn't pass the manual mobile-spec tests.
 I keep getting this error on the Nexus 7 running Lollipop, Nexus 6 running Lollipop and the
Samsung Galaxy S4 running 4.4.2. (Log from S4): 
> W/System.err( 7822): java.io.FileNotFoundException: Is a directory
> W/System.err( 7822): 	at android.os.Parcel.openFileDescriptor(Native Method)
> W/System.err( 7822): 	at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:252)
> W/System.err( 7822): 	at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:198)
> W/System.err( 7822): 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:902)
> W/System.err( 7822): 	at android.content.ContentResolver.openOutputStream(ContentResolver.java:672)
> W/System.err( 7822): 	at android.content.ContentResolver.openOutputStream(ContentResolver.java:648)
> W/System.err( 7822): 	at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:418)
> W/System.err( 7822): 	at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:610)
> W/System.err( 7822): 	at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:90)
> W/System.err( 7822): 	at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:319)
> W/System.err( 7822): 	at android.app.Activity.dispatchActivityResult(Activity.java:5618)
> W/System.err( 7822): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3547)
> W/System.err( 7822): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3594)
> W/System.err( 7822): 	at android.app.ActivityThread.access$1400(ActivityThread.java:161)
> W/System.err( 7822): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1313)
> W/System.err( 7822): 	at android.os.Handler.dispatchMessage(Handler.java:102)
> W/System.err( 7822): 	at android.os.Looper.loop(Looper.java:157)
> W/System.err( 7822): 	at android.app.ActivityThread.main(ActivityThread.java:5356)
> W/System.err( 7822): 	at java.lang.reflect.Method.invokeNative(Native Method)
> W/System.err( 7822): 	at java.lang.reflect.Method.invoke(Method.java:515)
> W/System.err( 7822): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
> W/System.err( 7822): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
> W/System.err( 7822): 	at dalvik.system.NativeStart.main(Native Method)
> I have no idea how we're handling files these days, and I think that's the main probelm
with out camera plugin.  Once we take the image and save it, the code just breaks, and it
would be good if we could somehow bundle some JUnit tests with this to make sure that the
camera actually stays working, since it's really brittle right now.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message