[QFJ-413] The repeating group count check doesn't work if the count == 0 Created: 12/Mar/09 Updated: 15/Nov/12 Resolved: 23/May/11 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.4.0 |
Fix Version/s: | 1.5.1 |
Type: | Bug | Priority: | Default |
Reporter: | Francis Uy | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None |
Description |
1) repro steps: 2) bad behavior: 3) expected behavior: |
Comments |
Comment by Francis Uy [ 12/Mar/09 ] |
forgot to put the code that ignores zero in FieldMap.java ... protected void setGroupCount(int countTag, int groupSize) { ... |
Comment by Francis Uy [ 12/Mar/09 ] |
this is called in Message.java->parseGroup() ... at the bottom you have ... // For later validation that the group size matches the parsed group count |
Comment by Francis Uy [ 27/Mar/09 ] |
possible fix is to put this as a check above the previous comment. if (declaredGroupCount == 0 && parent.getGroupCount(groupCountTag) != 0) { throw new FieldException( SessionRejectReason.VALUE_IS_INCORRECT, field.getTag()); } |
Comment by Steve Bate [ 06/Apr/10 ] |
Just to clarify... this is an issue if the group count is zero and yet the groups are actually there. |
Comment by Steve Bate [ 23/May/11 ] |
SVN #1036. |