CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 17:44:40 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=241.262125,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=549.737616,issue_conversation_sidebar-fragment;desc="issue_conversation_sidebar fragment";dur=43.948746,nginx;desc="NGINX";dur=0.813396,glb;desc="GLB";dur=101.686504
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: a2eb102
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=25H8B6b6QZqL1wUuJU%2BLu4pS9BrK4r4KiVxlsQMiJJeCdPScL%2FxEXXmNygCK566d1cJiELUDE5rPVPFblRmIqhYn1ReArE5SX8igEVqHf8fALAzWZvAexMQST6eNg5J6L7fgNeWEl2fz2hvTKdxGanKixLLivgmMTc7zjk6OVNogU1B9VgPbxmmWdUnEzuKK1eCExRG2XuoYM1hKVVZ6HKFVw8XWm4zLgthNxlD2%2FVc7uUhymtdlDONzCjIznzvW7YBBwBXVtk2m1Zcl8SbaRA%3D%3D--YKi5tl50qrv19O8b--fO18Qnth43g2wcx2PJn86w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.522479700.1753638279; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:44:39 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:44:39 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ED8E:22FFCB:28E510:33B826:68866587
Permission Denial: opening provider ... from ProcessRecord{...} requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs · Issue #118 · RonRadtke/react-native-blob-util · GitHub
No one assignedNo labelsNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
forked from joltup/rn-fetch-blob
-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Description
env: Android
"react-native": "0.66.2",
"react-native-blob-util": "^0.14.0",
I get the following error when trying to copy a video in order to upload it, using the new `copyToInternal" function:
await ReactNativeBlobUtil.MediaCollection.copyToInternal(
el.uri, // content uri of the entry in the media storage
destpath, // path to destination the entry should be copied to
)
The error is this:
Fatal Exception: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{b94f6fd 12170:com.myapp.viewer/u0a658} (pid=12170, uid=10658) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
at android.os.Parcel.createException(Parcel.java:2360)
at android.os.Parcel.readException(Parcel.java:2343)
at android.os.Parcel.readException(Parcel.java:2285)
at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5933)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:7185)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2954)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2509)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1994)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1825)
at android.content.ContentResolver.openInputStream(ContentResolver.java:1502)
at com.ReactNativeBlobUtil.ReactNativeBlobUtilMediaCollection.copyToInternal(ReactNativeBlobUtilMediaCollection.java:84)
at com.ReactNativeBlobUtil.ReactNativeBlobUtil.copyToInternal(ReactNativeBlobUtil.java:4)
at java.lang.reflect.Method.invoke(Method.java)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:148)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:147)
at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java)
at android.os.Looper.loop(Looper.java:236)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:37)
at java.lang.Thread.run(Thread.java:923)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.getContentProviderImpl(ActivityManagerService.java:7505)
at com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:7969)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2486)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2981)
at android.os.Binder.execTransactInternal(Binder.java:1162)
How?
I select a video with "react-native-image-picker".
I store its reference in AsyncStorage, for future uploading (the user may select photos/videos but close the app and re-open it later in order to upload the files):
/*
* Example of picked asset (video) in Android, saved in AsyncStorage to be retrieved later:
*
{
"height": 320,
"width": 568,
"type": "video/mp4",
"duration": 9,
"fileName": "video:45544",
"bitrate": 465939,
"fileSize": 566583,
"uri": "content://com.android.providers.media.documents/document/video%3A45544"
}
*
* */
I re-open the app later, I do see the video's thumbnail in the UI (retrieved from AsyncStorage):
I start uploading.
When it goes to upload the video (photos work OK), the app crashes with above error.
This has to do something with the new "uri": "content://
logic.
- Is there something I can do to prevent this error?
- Is there a method (like "exists") to be used also with
content://
uris? I suspect that maybe the actual file is not in the cache anymore (don't know why).
Thanks a lot!
Metadata
Metadata
Assignees
Labels
No labels
Projects
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.