You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by MiniGab <gi...@git.apache.org> on 2016/01/20 16:56:45 UTC

[GitHub] cordova-plugin-camera pull request: Fix FileNotFoundException in o...

GitHub user MiniGab opened a pull request:

    https://github.com/apache/cordova-plugin-camera/pull/155

    Fix FileNotFoundException in ouputModifiedBitmap

    The ouputModifiedBitmap expect the result from FileHelper.getRealPath to return null in case of error :
    
        String realPath = FileHelper.getRealPath(uri, this.cordova);
        // if realPath == "" => fileName = ""
        String fileName = realPath != null ?
                realPath.substring(realPath.lastIndexOf('/') + 1) :
                "modified." + (this.encodingType == JPEG ? "jpg" : "png");
    
        String modifiedPath = getTempDirectoryPath() + "/" + fileName;
    
        OutputStream os = new FileOutputStream(modifiedPath); <-- error when fileName == ""
    
    This might be related to https://issues.apache.org/jira/browse/CB-9960 and https://issues.apache.org/jira/browse/CB-10093

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MiniGab/cordova-plugin-camera master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-camera/pull/155.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #155
    
----
commit 9ea6d47225024890f251688a437d43c892b97a97
Author: Gabriel <mi...@users.noreply.github.com>
Date:   2016-01-20T15:21:09Z

    Update FileHelper.java
    
    Fix FileNotFoundException when opening a file from a third party application

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: Fix FileNotFoundException in o...

Posted by riknoll <gi...@git.apache.org>.
Github user riknoll commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/155#issuecomment-176536128
  
    See #135


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: Fix FileNotFoundException in o...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-plugin-camera/pull/155


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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