Space to %20 problem in ftp url...

Hi friends,
I want a href link which should download a pdf file inside a folder with folder name containing space say i want a link like :
D:\jboss\server\default\.\deploy\myexample.war\Docs\example 1.0\e1.pdf
so , it has a space in between example and 1.0
When I hover the mouse it shows D:\jboss\server\default\.\deploy\myexample.war\Docs\example%201.0\e1.pdf , so it could not find the file name with example%201.0 and doesnt go there. the browser automatically converts the space to %20.
if I put the same link D:\jboss\server\default\.\deploy\myexample.war\Docs\example 1.0\e1.pdf directly in the browser address it shows the file... Can any one help ??
Thanks!!

JavaWorld published an article about this topic. It is called "Java FTP client libraries reviewed" and it can be found here :
http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp.html
Best regards
Jean-Pierre Norguet
Jean-Pierre Norguet
JavaWorld Press
http://wasa.ulb.ac.be/jp.html

Similar Messages

  • Ftp URL, j2re1.3.1 versus j2re1.4.1

    Hello everybody
    I have a client application running on a PC, OS win2k, which regularly uses an ftp URL to download data files from a remote FTP server.
    There are two options for this, either through an Ethernet LAN or through slow modem connection (19.2kb) via PPP.
    When this application runs under j2re1.3.1 everything is fine in any case.
    I recently upgraded to j2re1.4.1, but things changed
    1) LAN connection everything is OK as usual
    2) Modem connection download a file from root directory, everything still OK.
    3) Modem connection, download a file from a subdirectory, i receive an exception sun.net.ftp.FTPProtocolException: PORT
    the URL i'm using is
    ftp://myuserid:mypassword@serverIP/path/filename
    i tried
    ftp://myuserid:mypassword@serverIP:21/path/filename
    but still throwing same exception as above.
    What has changed from 1.3.1 to 1.4.1 concerning URLs or security?
    Best Regards
    Kostas Bouzianas

    It would be useful if you posted a stack trace showing the exact FtpProtocolException that is thrown. From your first post it sounds like the PORT command is failing and if so, then the response string from the ftp server should be include in the exception text. The PORT command issued by the 1.4.x ftp client is identical to the PORT command issued by the 1.3.x implementation but in the 1.4 case PORT will only be used if a passive mode connection fails. In other words, in 1.4 the ftp client first tries a EPSV or PASV command to use a passive mode connection. Is there any possibility that this causes a problem on the embedded device so that a subsequent PORT command fails?

  • HttpURLConnection -- getting error 502 passing ftp url  w embedded password

    I am connecting to http proxy server which supports cern ftp.
    I specify the -DftpProxySet command line options to point java to the http proxy.
    I specify a ftp url like following and it works OK:
    ftp://machine.company.com/readme.txt
    it works fine.
    But when I change the ftp server to require password and pass ftp url such as
    ftp://user:[email protected]/readme.txt. , it fails.
    It works OK when I type above password ftp Url manually into the IE browser that is pointing to same http proxy the java is using.
    Error:
    java.io.IOException: Server returned HTTP response code: 502 for URL: ftp://user:[email protected]/readme.txt
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:562) at com.mycompany....Line 300
    Line 300:
    InputStream stream = connection.getInputStream();

    Hi, I have exactly the same problem!
    Could you solve it?
    Regards, Markus

  • I can't open ftp url's in safari

    safari can't open ftp:// url's such as ...
    ftp://www.apcmedia.com:21/salestools/STRH-6D5PA3R0EN.pdf
    i've tried with and without "use passive ftp mode" in network settings / proxies. i always get ...
    Safari can’t open the page “ftp://www.apcmedia.com:21/salestools/STRH-6D5PA3R0EN.pdf” because it could not load any data from this location.
    I have to use IE in vpc then transfer the pdf back to mac os x. what a pain !
    Mitch

    Hi Mitch,
    The download doesn't work for me either. I'm not sure what the problem is but send feedback to the Safari team via Safari menu -> Report Bugs to Apple...
    I have to use IE in vpc then transfer the pdf back to mac os x. what a pain !
    You could use another browser on the Mac instead, such as Camino. That downloaded the file without any problems.

  • Problem with FTP Adapter in creating a new Folder

    Hi all,
    I have a requirement in which a BPEL process shud create a folder named as sysdate dynamically and write a
    CSV file into that.(ex: PO/2010-03-09/PO_1.csv).I created a header variable for Oubound FTP adapter and
    passing the file directory as concat('PO/',xp20:current-date(),'/') to outbound header directory variable.Problem is FTP
    adapter is not creating the sysdate folder its says:1.check u have privileges 2.file name is too long....Blah....Blah.
    But i have all the privileges for that user.If i manually create the sysdate folder the FTP adapter is placing the CSV
    file.The same works fine with file adapter...but i need to use FTP since the FTP server can change in future.Seems to
    be a problem with FTP adapter....can some one help.
    Iam using SOA 10.1.3.4
    Regards,
    Edited by: 0racler on Mar 9, 2010 4:46 AM
    Edited by: 0racler on Mar 9, 2010 5:49 AM

    any thoughts????

  • Problem in FTP adapter ( Duplicate)

    Hi all,
    We have a composite that query the events from Oracle on demand CRM. Event contains key column which is used to fetch all related values.
    Using FTP adapter, we are placing the file in SAP and also one copy using file adapter in our local server for our reference.
    Problem :
    SAP is receiving two files in their inbound folder at same time stamp for one transaction.
    But in our local server, we are receiving one file only.
    So we isolated the problem to FTP adapter.
    When we analyzed the process and its audit trail, everything looks fine and FTP operation is called one time only.
    We are clueless regarding this problem.
    Also same interface works well in Production instance. We even tried deploying new composite that is freshly downloaded from Production.
    We need this to fix this by Wednesday as UAT begins in Test environment and that needs this interface to work fine.
    We have clustered environment and 2 SOA servers.
    Please someone help us identifying the problem. Its very urgent
    Thanks,
    Sundar

    Hi it may be the problem with the environment. Try adding the property <property name ="singleton">true</property name> in the composite.xml for the FTP adapter or at the server level.
    Swami

  • Problem while creating URL iview (in EP7.0)

    Hi,
    I encountered a problem while creating URL iview (in EP7.0) as when I selected the iview template for creating the URL iview, the content area got displayed as
    "No templates to display. You are not assigned to any existing templates."
    please assist me in this regard.
    Thanks,
    Suri

    Hi Manoj,
    Thank you for your reply.
    I am still getting the same messages even after creating the iview template in EP7.0
    Created through:
    content Admin --> portal content --> <folder>new --> iview  --> seleting "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR file)" <next> --> seleting "com.sap.portal.appintegrator.sap" <next> --> webdynpro <next> --> finish.
    Open object for editing...--> Object is a Template to Yes.
    Result :
    content Admin --> portal content --> <folder>new --> iview --> seleting "iview template- create an iView from an existing iView template" <next> which displays the same message.
    "No templates to display. You are not assigned to any existing templates."
    Rgrds,
    Suri.

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Problem with FTP put operation..??

    hi frendz,
    i'm facing some problem with FTP put operation. The Get operation(reading a file) is working fine. i'm using Apache FTP server.FTP User is having all read/write permissions. When i putthe file using FTP command prompt then its working fine. But using BPEL/FTP adapter put operation is not working.
    Main thing is its not giving any error but When i check the directory then i dont fine any file ther. In fact BPEL process is detecting directory where i'm going to write the file. But after completing the BPEL process i dont get any file.
    i am using opaque fomat. n just passing some data into input string which i'm assigning to <invoke>'s variable.
    Thanks a lot
    -Mishit

    Error itself indicates the potential issues -
    Please ensure
    1. Specified remote output Dir has write permission
    2. Output filename has not exceeded the max chararters allowed by the OS and
    3. Remote File System has enough spaceRegards,
    Anuj

  • Ftp:// URLs do now work in Safari

    I can not get any ftp:// URLs to work in Safari. I sent in a bug report, but am hoping someone has a workaround for this.
    This is the message I get if I try to download GSView from mirror.cs.wisc.edu using Safari:
    Safari can’t open the page.
    Safari can’t open the page “ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv48w32.exe”. The error was: “unknown error” (NSURLErrorDomain:-1) Please choose Report Bugs to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.

    FTP did not work for any of the Ghostscript mirrors that I tried, so I assumed it just did not work at all.
    I confirmed that with a local FTP server that it works somewhat.
    If you specify the full path to the directory you are interested in it gets there, however if you attempt to click down into a directory, it hangs and you get server connection interrupted windows popping up.
    Also once you are there it gets server connection interrupted windows popping up randomly.

  • Problems With FTP Upload in Leopard 10.5.3-4

    Hi, I experience a strange problem with ftp upload speed in 10.5.3-4. When I start upload a file to my trusted ftp server the upload speed starts to decrease from 300 kb/sec to 35 -40 kb/sec. It remains normal for 1-2 minutes (about 300 kb/sec) and then smoothly decreases to 35 -40 kb/sec. Pressing Stop and then Resume in Cyberduck makes speed normal for 1-2 minutes and then it starts to decrease again. It does not depend on ftp-client, it does not matter if I use either Cyberduck, Transmit or Fetch. It happens if I use either ethernet or airport connection. I have my old Powerbook with 10.4.11, it's connected to the same router with the same settings and the same time upload speed remains stable about 300 kb/sec.
    But when I transfer files from my Macbook to my old Powerbook via ftp everything is fine. And when I transfer files to ftp server of my local ISP it's also fine.
    Please, help me, I have to upload big 100 Mb files very often and it's significant difference for me 30 or 300 kb/sec
    Boris

    I'm afraid it's not just the Duck or FTP, Boris....It's many many Apps...and protocols... 10.5 appears to have ;broken',a number of file transfer protocols and Apps... (Wired and KDX are two that come to mind- precisely the same symptoms, AND some others) Apple's own 'built-in' FTP appears OK Mac-Mac, oddly enough.
    There's obviously some kind of weird Copy-Paste problem too.
    It's obviously 'fixable' or a workaround is available because several s/w mobs have released 'fixes for 10.5 file transfer Bug'
    The rest of us will just have to wait while another unannounced,unacknowledged, gaping hole in the Mac OS is quietly fixed and our expensive s/w sits unusable...
    Not really good enough, is it ?
    Like: Not being able to automatically detect a part file transfer on FTP and Auto-resume from whence you left off: something we thought was pretty cool- back in about 1984.... and absolutely essential in 86 or so.
    Boris:You will almost certainly find that it happens whatever the client-server server setup and applications or Medium... I've seen precisely what you describe happen with Airport, Cable, 10/100/1000' local' LAN...
    - and watching your throughput drop from 300K to 300 BYTES/Sec is NO FUN.
    I've spent a lot of time and money convincing potential 'Switchers' of the superiority of the Mac way over the last 20 years or so...
    I'm getting pretty tired at defending the indefensible: 'SkoolBoy Misstakes' in a 24 year old 'superior Computer.- Not Good enough, Apple.

  • Problem with entering URL

    Ever since the last update or two I seem to have an irritating problem with entering URLs. If I'm navigating a site and modify the URL manually in the address field and hit enter, the URL reverts back automatically to the previous one instead of accepting the new modified entry.
    For example if I'm on www.site.com/path/path and go to the URL bar and remove the last '/path' and hit enter, the browser seems to 'remember' and take me to the previous URL path, i.e. www.site.com/path/path. It doesn't matter whether the deleted text forms part of the URL path or whether its parameters after the path, or even if I modify the URL to something like www.site.com/path/anotherpath.
    Once it starts 'remembering' there seems to be no way of getting around this except to close the browser down and start again. I've noticed this behavior on FF20.0.1 and also on FF21. It happens on all 3 of the PCs I use (2 at home, one at work). I'n not sure if its being caused directly by FF or the NoScript plugin (the latter seems unlikely).
    Is there a setting somewhere to modify this behavior, or is it a bug?

    i couldn't find any documentation for it either, however after testing it, it appears that when browser.urlbar.autoFill.typed is set to '''true''' it means that only addresses you've once typed into the url-bar manually get autofilled, when browser.urlbar.autoFill.typed is set to '''false''' then all addresses that are stored in your history no matter if you have typed them in once manually or visited them through a link on a website.
    browser.urlbar.autoFill will generally switch the autocomplete feature in the address bar on or off.

  • Problem with opendoc url.

    hi experts,
    i am having a problem with opendoc url in my dashboard.my url is to open a webi report depends on two prompts given by the user.
    i am using the following url and it is working fine.
    http://sysname:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sRefresh=Y&iDocID=123456&mode=full&nbPrompts=2&lsSEnter Year=Prompt1&lsSEnter Dealer=prompt2.
    when i am entering a value for prompt2 like "krishna distributors" its working fine.but the problem here is whenever i am entering a value for the second prompt with a value like (ex:) "ravi & ravi distributors" its giving an message "NO DATA TO RETRIEVE"  because it is considering the & symbol in my prompt2 as another parameter as shown below.
    http://sysname:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sRefresh=Y&iDocID=123456&mode=full&nbPrompts=2&lsSEnter Year=Prompt1&lsSEnter Dealer=ravi & ravi distributor
    can anyone help me on this.
    thanks in advance,
    ravi kishore yarramsetti.

    Hi Ravi,
    In Excel , & considers as "Concatenation. So it will not work properly. To make this work, use Dealer Number instead of Dealer name in ur example.
    Eg:
    Dealer Name                           Dealer Number
    ravi & ravi distributors            D10001
    krishna distributors                 D10002
    If you use Dealer Number "D10001" you can get "ravi & ravi distributors " Information. In ur Dashboard Design, if the user clicks "ravi & ravi distributors" then pass "D10001" to the Opendoc and generate the report.
    Try to not use which has special characters as the prompt in Xcelsius.
    Thanks,
    Muthukumar A.S.

  • Problem with an Url

    Hello, I have a problem with the Url in the HTTP Service
    <mx:HTTPService id="userRequest" url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&i dPage=0" useProxy="false" method="GET"/>
    The service should open a PNG image and the error bring back is:  The reference to entity "idPage" must end with the ';' delimiter. 
    Can you help me? Thank you.

    Hi,
    The url is OK, the problem is that properties for MXML cannot have included some characters. So you need to escape entities in your url and it will be ok, for example:
    url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&idPage=0"
    But it would be better if you do not hardcode params in URL. If you need you could hardcode them in Mxml itself like below:
    <mx:HTTPService
         url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do"
         method="GET"
         id="userRequest">
         <mx:request>
              <idPdf>1</idPdf>
              <idPage>0</idPage>
         </mx:request>
    </mx:HTTPService>
    or (which is more flexible) use parameters as argument when invoking service:
    userRequest.send({idPdf:1, idPage:0});
    You could read more on that in section about data integration in Flex in online or offline documentation:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part4_data_access_1.html
    hth,
    regards,
    Peter

  • Problem in CKEDITOR url fetching

    Hi Gurues,
    I am using the ckeditor in my project in which i insert the image using that insert image button when i select the image i found the following image url
    http://MyDomain:81/pls/apex/apex_util.get_blob_file?a=162&amp;s=1394272106476846&amp;p=44&amp;d=4888523467505748&amp;i=4888220930505746&amp;p_pk1=7&amp;p_pk2=&amp;p_ck=474FDDF2B587C814CF7ADCA31C0153E1
    when i save this in the clob data type column. up to this i dont have problem.
    My problem is the url current contain the session value. So whenever i fetch the data in ckeditor , the url in the data it shows the problem because of the session value.
    so am not able to fetch the image.
    so any one has idea how to do solve this problem please reply.
    thanks in advance.
    Regards
    Dipen

    It's not clear what your question is, exactly.
    You can use java.net.URLEncoder (I believe; check the API docs to confirm that's the right name) to URL-encode a string of text.
    I'd also suggest creating a script that hits the target web server with a collection of known good URLs. It should probably also hit it with a collection of known bad URLs, to confirm that it doesn't let bad stuff through and that it degrades gracefully.
    This will help decouple the two servers, so you can develop and maintain each part independently. This is especially useful if you haven't quite got the system working right yet. Maybe you've misidentified the problem.

Maybe you are looking for