[QFJ-395] SenderSub ID with colon truncates log file Created: 16/Jan/09  Updated: 20/Mar/11  Resolved: 20/Mar/11

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Other Priority: Default
Reporter: Herman Hung Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows



 Description   

Hi,

When trying to create an initiator session using QuickFix/J, I use the FileStorePath parameter in my properties file to point to a folder named "logs". Normally, a series of files would be generated upon session creation (namely, FIX.4.2-<SenderCompID><SenderSubID>-<TargetCompID><TargetSubID>.body, .event, .header, .seqnums, .session, etc.

However, the SenderSubID that I'm using is something with a colon in it, such as XFC2:XFC2. In Linux, the files still generate cleanly (i.e. -> FIX.4.2(some sendercompid)XFC2:XFC2-(some targetcompid)(some targetsubid).body, etc.). However, in Windows, only one file is truncated, and it seems to be truncated at the Colon. In other words, the only file in the directory generated is:

FIX.4.2.(somesendercompid)_XFC2

with no extensions. Can anyone help me out with this please?

Thanks,
Herman



 Comments   
Comment by Laurent Danesi [ 20/Jan/09 ]

Hi Herman,

I reproduce easily your problem but this is Windows related problem: it's not possible to create a file containing colon in it.
The colon used as separator and Windows will do ugly things like you can see.

Linux will do better job with filename containing semicolon but you will not be able to create your file too.

I think that you need to workaround your problem by extending FileStoreFactory and FileStore to create your own files with good names.

Laurent

Comment by Laurent Danesi [ 20/Jan/09 ]

Anyway, I will add some checkings in FileUtils to avoid this kind of problem by removing forbidden characters.

Laurent

Generated at Tue Jul 01 09:00:54 UTC 2025 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.