cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Kotikov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-11368) resolveLocalFileSystemURL cannot handle url returned by contacts plugin
Date Thu, 14 Jul 2016 14:46:20 GMT

     [ https://issues.apache.org/jira/browse/CB-11368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vladimir Kotikov updated CB-11368:
----------------------------------
    Description: navigator.contacts.pickContact returns photo url like {{content://com.android.contacts/contacts/1/photo}},
which cannot be resolved by resolveLocalFileSystemURL with {{FileError code: 1000}}. I inspect
code in the {{ContentFileSystem.java}}, and find the method {{resourceSizeForCursor}} cannot
return correct value. The problem is, that cursor doesn't have a column named _size. I have
given permission of File and Contacts.  (was: navigator.contacts.pickContact returns photo
url like {{content://com.android.contacts/contacts/1/photo}}, which cannot be resolved by
resolveLocalFileSystemURL with {{FileError {code: 1000}}}. I inspect code in the {{ContentFileSystem.java}},
and find the method {{resourceSizeForCursor}} cannot return correct value. The problem is,
that cursor doesn't have a column named _size. I have given permission of File and Contacts.)

> resolveLocalFileSystemURL cannot handle url returned by contacts plugin
> -----------------------------------------------------------------------
>
>                 Key: CB-11368
>                 URL: https://issues.apache.org/jira/browse/CB-11368
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin File
>            Reporter: zhuisui
>              Labels: triaged
>
> navigator.contacts.pickContact returns photo url like {{content://com.android.contacts/contacts/1/photo}},
which cannot be resolved by resolveLocalFileSystemURL with {{FileError code: 1000}}. I inspect
code in the {{ContentFileSystem.java}}, and find the method {{resourceSizeForCursor}} cannot
return correct value. The problem is, that cursor doesn't have a column named _size. I have
given permission of File and Contacts.



--
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