You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/29 12:56:13 UTC
[GitHub] [cordova-plugin-camera] BorntraegerMarc opened a new issue #495:
Android Bug in CameraLauncher.java cause "adding the current system time to
the end of the file url"
BorntraegerMarc opened a new issue #495: Android Bug in CameraLauncher.java cause "adding the current system time to the end of the file url"
URL: https://github.com/apache/cordova-plugin-camera/issues/495
# Bug Report
## Problem
Sometimes choosing an image with this plugin from image gallery will not work because file url is wrong.
On this line: https://github.com/apache/cordova-plugin-camera/blob/db4b4b947d53be1fc0ae929e793270392c7fc8aa/src/android/CameraLauncher.java#L738 we add the current system time to the end of the file URL. This leads to a problem if this line is actually executed that the returned file URL can not be read from the webview.
Because: If we try to read the file in the file system with the name `filename.jpg?1234` then it obviously doesn't exist. Because the last part was added.
I'm trying to figure out why this timestamp is added? The code was added 6 years ago.
The related comment `The modified image is cached by the app` does not give a lot of insights.
### What is expected to happen?
The callbackContext returned string shouldn't include the timestamp.
### What does actually happen?
Timestamp included in file url.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
Choose a file that triggers the code referenced. Maybe by choosing a file that isn't locally downloaded (like from GDrive or OneDrive).
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Android 9
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Latest version of this Plugin
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [X] I searched for existing GitHub issues
- [X] I updated all Cordova tooling to most recent version
- [X] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org