cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gonzalez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-6923) [WP8][cordova-plugin-file] native side mishandles relative path
Date Wed, 11 Jun 2014 17:35:04 GMT

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

Martin Gonzalez updated CB-6923:
--------------------------------

    Description: 
The filesystem URIs on WP8, is not able to handle the resolve navigation a parent directory
using a relative path, e.g.:
fileName = ../resolve.file.uri

Instead is taking ".." as the parent directory not as navigation to the parent directory.
The filesystem should be able to resolve the path to the parent directory and set root as
the ultimate parent directory as well.
{code}
../resolve.file.uri
{code}
and
{code}
/resolve.file.uri
{code}
Should be resolved to the same file, setting the file system root as the last parent directory.

This:
{code}
root.getDirectory(//someDir/someSubDir, function (dir) {
dir.getFile("../valid.file.txt", .. );
}, ..);
{code}

Should result this: 
{code}
"//someDir/valid.file.txt"
{code}

Navigation to parent directories should be supported.

  was:
The filesystem URIs on WP8, is not able to handle the resolve navigation a parent directory
using a relative path, e.g.:
fileName = ../resolve.file.uri

Instead is taking ".." as the parent directory not as navigation to the parent directory.
The filesystem should be able to resolve the path to the parent directory and set root as
the ultimate parent directory as well.
{code}
../resolve.file.uri
{code}
and
/resolve.file.uri
Should be resolved to the same file, setting the file system root as the last parent directory.

This:
root.getDirectory(//someDir/someSubDir, function (dir) {
dir.getFile("../valid.file.txt", .. );
}, ..);

Should result this: "//someDir/valid.file.txt"

Navigation to parent directories should be supported.


> [WP8][cordova-plugin-file] native side mishandles relative path
> ---------------------------------------------------------------
>
>                 Key: CB-6923
>                 URL: https://issues.apache.org/jira/browse/CB-6923
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 3.5.0
>            Reporter: Martin Gonzalez
>              Labels: plugin-file
>             Fix For: 3.6.0
>
>
> The filesystem URIs on WP8, is not able to handle the resolve navigation a parent directory
using a relative path, e.g.:
> fileName = ../resolve.file.uri
> Instead is taking ".." as the parent directory not as navigation to the parent directory.
> The filesystem should be able to resolve the path to the parent directory and set root
as the ultimate parent directory as well.
> {code}
> ../resolve.file.uri
> {code}
> and
> {code}
> /resolve.file.uri
> {code}
> Should be resolved to the same file, setting the file system root as the last parent
directory.
> This:
> {code}
> root.getDirectory(//someDir/someSubDir, function (dir) {
> dir.getFile("../valid.file.txt", .. );
> }, ..);
> {code}
> Should result this: 
> {code}
> "//someDir/valid.file.txt"
> {code}
> Navigation to parent directories should be supported.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message