Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

IOException: file name too long #33

Description

@globalworming

when using sahi on google maps pages, this appears on the console:

may be a bug in the RemoteRequestProcessor.isDownloadURL method.

29 Apr 2015 07:14:43,021 INFO  pool-1-thread-34 [net.sf.sahi.RemoteRequestProcessor] - 
-- Calling downloadFile --
https://mt0.google.com/vt/pb=!1m4!1m3!1i4!2i8!3i5!2m3!1e0!2sm!3i298103718!3m4!2sen!5e1105!12m1!1e47!4e1!5m4!1e4!8m2!1e0!1e1!6m15!1e12!16e1!19m4!1e1!2e0!4m1!1e0!20m4!1e1!2e3!3m1!1e0!28e5!44e1!1001b1
downloadURL = false
response.isAttachment() = false
fileName = pb=!1m4!1m3!1i4!2i8!3i5!2m3!1e0!2sm!3i298103718!3m4!2sen!5e1105!12m1!1e47!4e1!5m4!1e4!8m2!1e0!1e1!6m15!1e12!16e1!19m4!1e1!2e0!4m1!1e0!20m4!1e1!2e3!3m1!1e0!28e5!44e1!1001b1
contentTypeHeader = application/vnd.google.octet-stream-compressible; charset=x-user-defined
downloadContentType = true
Content-Disposition=null
contentDispositionForcesDownload = false
--
29 Apr 2015 07:14:43,021 INFO  pool-1-thread-34 [net.sf.sahi.RemoteRequestProcessor] - Downloading sahi_5494e64c0cfbb04362097620ed93ca67bb4d__pb=!1m4!1m3!1i4!2i8!3i5!2m3!1e0!2sm!3i298103718!3m4!2sen!5e1105!12m1!1e47!4e1!5m4!1e4!8m2!1e0!1e1!6m15!1e12!16e1!19m4!1e1!2e0!4m1!1e0!20m4!1e1!2e3!3m1!1e0!28e5!44e1!1001b1 to temp directory:
/home/wormi/workspace/Sahi/sahi-core/userdata/temp/download
29 Apr 2015 07:14:43,021 WARN  pool-1-thread-34 [net.sf.sahi.RemoteRequestProcessor] - Could not write to file
29 Apr 2015 07:14:43,022 WARN  pool-1-thread-34 [net.sf.sahi.RemoteRequestProcessor] - java.io.IOException: File name too long
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:1012)
        at net.sf.sahi.RemoteRequestProcessor.save(RemoteRequestProcessor.java:297)
        at net.sf.sahi.RemoteRequestProcessor.downloadFile(RemoteRequestProcessor.java:285)
        at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:182)
        at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:148)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:98)
        at net.sf.sahi.ProxyProcessor.processConnect(ProxyProcessor.java:209)
        at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:141)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:98)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions