Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3650

jax-rs basic example doesn't work when there's a space in file path url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.6, 2.4.2, 2.5
    • None
    • None
    • Mac

    Description

      If the path url has space like
      /Users/ffang/apache-cxf-2.4.1/samples/jax_rs/my basic/
      then the resolved file url is
      /Users/ffang/apache-cxf-2.4.1/samples/jax_rs/my%20basic/target/classes/demo/jaxrs/client/update_customer.xml
      here %20 represent space, it's ok on windows platform but not ok on mac, on mac we need replaceAll("%20", " ");
      we should use org.apache.cxf.resource.URIResolver to resolve the file url here which both works on windows and *nix.

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: