Christoph Christ created CB-9849:
------------------------------------

             Summary: CDVFILE Bug
                 Key: CB-9849
                 URL: https://issues.apache.org/jira/browse/CB-9849
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaLib
    Affects Versions: 3.5.0
         Environment: ios, android
            Reporter: Christoph Christ


CDVFILE has a bug:

If a page from a downloaded storage is called via 
cdvfile://localhost/persistent/myfile.html is calling another file without 
absolute path, it fails because the resulting filename is wrongly built of

cdvfile:////localhost/persistent/mysecondfile.html

How to reproduce: download with filetransfer another html fiile to the device's 
persistent storage containing a link to "mysecondfile.html" without a trailing 
path.

Download works, Calling cdvfile://localhost/persistent/myfile.html works. 
klicking on the link "mysecondfile.html" without trailing path fails - if I 
enter the absolute path with those 2 slashes in the form 
cdvfile://localhost/persistent/mysecondfile.html all is working flawlessly.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to