Yeah, or just truncate to ~240 chars at capture.Url.writeEventToLog(Url.java:120), since it seems it's only the logfile - could append the hash to the end to distinguish in case there are two or more ambiguous ones.
Dr. Seifert to the white courtesy telephone please :) On 10 March 2011 19:33, <george.ma...@gtri.gatech.edu> wrote: > ________________________________________ > From: Jamie Riden [jamie.ri...@gmail.com] > Sent: Thursday, March 10, 2011 2:25 PM > To: Macon, George > Subject: Re: [Capture-HPC] Very Long URLs trigger java.io.FileNotFound > >> thanks! sorry, got the stack trace as well? > > Sure. I was already looking at that. I think a real solution would be to > change the code to hash the URL instead of escaping it and using it directly. > > java.io.FileNotFoundException: > log/http%3A%2F%2Fr20.rs6.net%2Ftn.jsp%3Fllr=fmlsyfeab%26amp;et=1104523715117%26amp;s=5312%26amp;e=001sdjedkq2ewicc0qeidix9uph3dvmadqemkizes3duxcbqdwh9whjlzdniwneuoflc80ta4kzdzddhl_hstvtej5sw-ajtvlltsd4okv6dwnegxszhktqksavmmk5ncexo7y0k2mqwo7r8clyuhjhcvfs8_3fspitdv-nuossvfgcmhmaf5bq4oiqk2o7b9i_sqm5lcqlnna=_10032011_085349.log > (File name too long) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:209) > at java.io.FileOutputStream.<init>(FileOutputStream.java:99) > at capture.Url.writeEventToLog(Url.java:120) > at capture.UrlGroup.writeEventToLog(UrlGroup.java:167) > at capture.Client.parseEvent(Client.java:226) > at > capture.ClientEventController.endElement(ClientEventController.java:202) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604) > at > com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:602) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3080) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:899) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) > at capture.ClientEventController.run(ClientEventController.java:128) > at java.lang.Thread.run(Thread.java:636) -- Jamie Riden / ja...@honeynet.org / jamie.ri...@gmail.com http://uk.linkedin.com/in/jamieriden _______________________________________________ Capture-HPC mailing list Capture-HPC@public.honeynet.org https://public.honeynet.org/mailman/listinfo/capture-hpc