apache / apache/cordova-plugin-file

NOT_FOUND_ERR when share as an attachment from Office Word

Open
#366 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
744
Forks
754
Avg merge
3d 4h
Merged PRs (30d)
1

Description

# Bug Report
NOT_FOUND_ERR on _resolveLocalFilesystemUrl_ respectively _copyFile_

## Problem
I'm trying to share a document from the microsoft office app on Android in my app. In my app, I get an intent (cordova-plugin-webintent) back with the path to the document.

> content://com.microsoft.office.word.fileprovider/3b683438-3900-4097-afe3-d654bd46c123/Document.docx

i use the Plugin cordova-plugin-filepath to change this Path to:

> file:///data/user/0/com.microsoft.office.word/files/tempOffice/Share/57232792-4ca0-42c2-89a9-33888f9576be/Document.docx

Regardless of which of the two paths I use, in both cases I get a NOT_FOUND_ERR back.

Is there a Problem with access to files from Microsoft Apps?

### Environment, Platform, Device

Ionic:

Ionic CLI : 5.4.2
Ionic Framework : ionic-angular 3.9.5
@ionic/app-scripts : 3.2.3

Cordova:

Cordova CLI : 8.1.1 (cordova-lib@8.1.0)
Cordova Platforms : android 7.1.4
Cordova Plugins : no whitelisted plugins (34 plugins total)

Utility:

cordova-res : 0.7.0
native-run : 0.2.8

System:

Android SDK Tools : 26.1.1 (C:\Users\username\AppData\Local\Android\sdk)
NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Contributor guide

Open the contributing guide

Research direction

The report does not name a repository file, test, or entry point. Start by reproducing the Android share flow with the reported content:// and file:// paths, then trace how the plugin resolves and copies each path. Done means identifying and fixing the cause of NOT_FOUND_ERR, with a regression test covering the failing Office Word attachment case.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.