[QFJ-476] Message vailidation is done even if use data dictionary flag is set "N" Created: 01/Oct/09  Updated: 15/Nov/12  Resolved: 05/Apr/10

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0

Type: Bug Priority: Default
Reporter: Subodh Jain Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: None

Issue Links:
Duplicate
is duplicated by QFJ-501 Setting session property UseDataDicti... Closed

 Description   

The fix I found for this is:
1. Have a boolean flag useDataDictionary in Session.java.
2. When the session is created in DefaultSessionFactory this flag is passed based on session setting.
3. In session.java validate only is useDataDictionary=true.
ie. Modify function public void next(Message message) Line 763
change
if (dataDictionaryProvider != null)
to
if (dataDictionaryProvider != null && useDataDictionary)



 Comments   
Comment by Jake Machina [ 25/Mar/10 ]

A more effective fix might be to move line 99 of DefaultSessionFactory.java into the if() block following it (line 101).

This way dataDictionaryProvider would be null if appropriate, and all the checks which already use the null value will work.

Comment by Steve Bate [ 05/Apr/10 ]

SVN #926

Generated at Sun May 19 01:32:31 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.