[QFJ-279] Fields in groups will not be checked. Created: 24/Dec/07 Updated: 07/Aug/08 Resolved: 03/Feb/08 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.2.1 |
Fix Version/s: | 1.3.2 |
Type: | Bug | Priority: | Default |
Reporter: | CaiQi | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | None |
Issue Links: |
|
Description |
If there are repeating groups or fields in a group, they will not be verified when received. 1. When verify the field in a fieldMap, fields in groups must be vevified. Add this into DataDictionary: for (int i = 0; i < groupMembers.size(); i++) { originalGroup = (Group) groupMembers.get(i); GroupInfo rg = getGroup(msgType, field.getField()); DataDictionary group_dataDictionary = rg.getDataDictionary(); group_dataDictionary.hasVersion = this.hasVersion; group_dataDictionary.beginString = this.beginString; group_dataDictionary.fieldValues = this.fieldValues; group_dataDictionary.fieldTypes = this.fieldTypes; group_dataDictionary.iterate(originalGroup, msgType); }} 2. Groups must be added into memory from *.xml. |
Comments |
Comment by CaiQi [ 24/Dec/07 ] |
Initiator:send a message which the NoGroup is wrong. For example, such are parts of some messages. 802:Number of group. This is because fields in groups and groups in groups are not verified when received. We must verify them (In |
Comment by Steve Bate [ 03/Feb/08 ] |
I'm not sure if this was fixed as a side-effect of other changes, but I can't reproduce these errors with the code in the SVN trunk. I've added a test in RepeatingGroupTest to specifically test for high and incorrect group counts in the message. |