You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mickael Istria (JIRA)" <ji...@apache.org> on 2011/05/04 14:15:03 UTC

[jira] [Created] (CXF-3487) wsdl2java cannot handle file path with accents

wsdl2java cannot handle file path with accents
----------------------------------------------

                 Key: CXF-3487
                 URL: https://issues.apache.org/jira/browse/CXF-3487
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.4
         Environment: * Linux Ubuntu 9.10
* java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
* CXF 2.4.0
            Reporter: Mickael Istria


It is not possible to perfrom a wsdl2java operation on a file path or URL that contains an accent (é).

Tried:
* wsdl2java file:/home/mistria/accent_é.wsdl
* wsdl2java file:/home/mistria/accent_%e9.wsdl
* wsdl2java file:/home/mistria/accent_%E9.wsdl
* wsdl2java /home/mistria/accent_é.wsdl
* wsdl2java /home/mistria/accent_%e9.wsdl
* wsdl2java /home/mistria/accent_%E9.wsdl
Unsuccessfully

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3487) wsdl2java cannot handle file path with accents

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046584#comment-13046584 ] 

Daniel Kulp commented on CXF-3487:
----------------------------------


This might be a Java bug on Linux or an OS issue or something.  I'm not really sure.  I cannot figure out how to take the above strings that point to a valid file on the filesystem and get a java.io.File object that returns true for exists() or even a File pointing to the directory where .isDirectory() returns true.   A simple program like:

{code:java}
        File file = new File("/tmp");
        for (String f : file.list()) {
            if (f.startsWith("test-")) {
                File f2 = new File("/tmp/" + f);
                System.out.println(f2);
                System.out.println(f2.exists());
                System.out.println(f2.isDirectory());
                
                f2 = new File(file, f);
                System.out.println(f2);
                System.out.println(f2.exists());
                System.out.println(f2.isDirectory());
            }
        }       
        for (File f : file.listFiles()) {
            if (f.getName().startsWith("test-")) {
                File f2 = new File("/tmp/" + f.getName());
                System.out.println(f2);
                System.out.println(f2.exists());
                System.out.println(f2.isDirectory());
                
                System.out.println(f);
                System.out.println(f.exists());
                System.out.println(f.isDirectory());
            }
        }
{code}
Returns false for everything for  all directories I stuck in /tmp that start with test- and have accents.    If we can figure out how to get the File object, we might be able to get this working.

Note: maven seems to have the same issue.  If I stick a pom.xml in a directory with an accent, maven cannot find the pom and won't build.




> wsdl2java cannot handle file path with accents
> ----------------------------------------------
>
>                 Key: CXF-3487
>                 URL: https://issues.apache.org/jira/browse/CXF-3487
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.13, 2.2.11, 2.2.12, 2.4, 2.3.4
>         Environment: * Linux Ubuntu 9.10
> * java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
> * CXF 2.4.0
>            Reporter: Mickael Istria
>              Labels: wsdl2java
>
> It is not possible to perfrom a wsdl2java operation on a file path or URL that contains an accent (é).
> Tried:
> * wsdl2java file:/home/mistria/accent_é.wsdl
> * wsdl2java file:/home/mistria/accent_%e9.wsdl
> * wsdl2java file:/home/mistria/accent_%E9.wsdl
> * wsdl2java /home/mistria/accent_é.wsdl
> * wsdl2java /home/mistria/accent_%e9.wsdl
> * wsdl2java /home/mistria/accent_%E9.wsdl
> Unsuccessfully

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-3487) wsdl2java cannot handle file path with accents

Posted by "Mickael Istria (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mickael Istria updated CXF-3487:
--------------------------------

    Affects Version/s: 2.0.13
                       2.2.11
                       2.2.12
                       2.3.4

> wsdl2java cannot handle file path with accents
> ----------------------------------------------
>
>                 Key: CXF-3487
>                 URL: https://issues.apache.org/jira/browse/CXF-3487
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.13, 2.2.11, 2.2.12, 2.4, 2.3.4
>         Environment: * Linux Ubuntu 9.10
> * java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
> * CXF 2.4.0
>            Reporter: Mickael Istria
>              Labels: wsdl2java
>
> It is not possible to perfrom a wsdl2java operation on a file path or URL that contains an accent (é).
> Tried:
> * wsdl2java file:/home/mistria/accent_é.wsdl
> * wsdl2java file:/home/mistria/accent_%e9.wsdl
> * wsdl2java file:/home/mistria/accent_%E9.wsdl
> * wsdl2java /home/mistria/accent_é.wsdl
> * wsdl2java /home/mistria/accent_%e9.wsdl
> * wsdl2java /home/mistria/accent_%E9.wsdl
> Unsuccessfully

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CXF-3487) wsdl2java cannot handle file path with accents

Posted by "Daniel Kulp (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-3487.
------------------------------

       Resolution: Not A Problem
    Fix Version/s: Invalid
         Assignee: Daniel Kulp


Marking this resolved as I discovered this completely depends on your LANG environment and MAY be a java issue.   With my LANG set to just "en", then the above mentioned test fails and I cannot run wsdl2java or anything as Java cannot create a "File" object that actually points that file.

However, if I set my LANG to "en_US.UTF-8", then Java CAN create the appropriate File objects and the wsdl2java command runs fine.
                
> wsdl2java cannot handle file path with accents
> ----------------------------------------------
>
>                 Key: CXF-3487
>                 URL: https://issues.apache.org/jira/browse/CXF-3487
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.13, 2.2.11, 2.2.12, 2.4, 2.3.4
>         Environment: * Linux Ubuntu 9.10
> * java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
> * CXF 2.4.0
>            Reporter: Mickael Istria
>            Assignee: Daniel Kulp
>              Labels: wsdl2java
>             Fix For: Invalid
>
>
> It is not possible to perfrom a wsdl2java operation on a file path or URL that contains an accent (é).
> Tried:
> * wsdl2java file:/home/mistria/accent_é.wsdl
> * wsdl2java file:/home/mistria/accent_%e9.wsdl
> * wsdl2java file:/home/mistria/accent_%E9.wsdl
> * wsdl2java /home/mistria/accent_é.wsdl
> * wsdl2java /home/mistria/accent_%e9.wsdl
> * wsdl2java /home/mistria/accent_%E9.wsdl
> Unsuccessfully

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira