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/05/28 19:09:42 UTC

[GitHub] [cordova-plugin-file] mrodal opened a new issue #320: Files dir gets appended an additional /files/ and breaks file storage (FileError {code: 5})

mrodal opened a new issue #320: Files dir gets appended an additional /files/ and breaks file storage (FileError {code: 5})
URL: https://github.com/apache/cordova-plugin-file/issues/320
 
 
   # Bug Report
   
   ## Problem
   I cant create files
   
   ### What is expected to happen?
   To be able to create files
   
   
   ### What does actually happen?
   I cant, I get FileError {code: 5}
   
   
   ## Information
   This line is the culprit:
   https://github.com/apache/cordova-plugin-file/blob/c609ff6f59d23d0bcbfe92c5eb81665e3df41027/src/android/FileUtils.java#L189
   
   getFilesDir() already returns the path with /files, and its being added again for some reason.
   This makes the rootUri of the persistent filesystem to reject every file in the /files directory in this line:
   https://github.com/apache/cordova-plugin-file/blob/c609ff6f59d23d0bcbfe92c5eb81665e3df41027/src/android/LocalFilesystem.java#L83
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   Android Oreo
   
   
   
   ### Version information
   cordova-plugin-file 6.0.1
   
   <!-- 
   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.
   -->
   
   
   
   ## 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
   - [ ] 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