[QFJ-770] Message fromString don't report about REPEATING_GROUP_FIELDS_OUT_OF_ORDER Created: 23/Jan/14 Updated: 27/Jul/17 Resolved: 13/Apr/17 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.5.3 |
Fix Version/s: | 1.6.4 |
Type: | Improvement | Priority: | Minor |
Reporter: | Andrey Alekov | Assignee: | Christoph John |
Resolution: | Fixed | Votes: | 0 |
Labels: | Message | ||
Environment: |
Windows 7. Eclipse. |
Issue Links: |
|
Description |
When I tried to parse message from String I faced with not expected behavior of method Message.fromString() Source message in Repeating group have unordered tags and values. Example are below. When call fromString I see parsed message without any error. I checked Message.Exception and found next "Out of order repeating group members, field=916" Well, I found what in Message.parse method (line Message.java:485) written exception but not raised. } catch (final FieldException e) { exception = e; }Please fix to raise InvalidMessage instead filling this.exception to case below. |
Comments |
Comment by Christoph John [ 13/Apr/17 ] |
It is "normal" that the Message object tries to parse the FIX string with minimal validation. Validation is done later using dataDictionary.validate(). dictionary.setCheckUnorderedGroupFields(false); dictionary.setCheckUserDefinedFields(false); dictionary.setAllowUnknownMessageFields(true); But please note that this has its limitations. If there are unknown group count fields for instance, then QFJ will never be able to parse the message since it does not know where a repeating group starts or ends. |