[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.(somesendercompid)_XFC2 with no extensions. Can anyone help me out with this please? Thanks, |
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. 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 |