Problem in LOGON when LOGON message contain one empty field

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem in LOGON when LOGON message contain one empty field

Vipin Chaudhary
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi All,

I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.

Now In one case when client send Username value as empty then quickfix doesnot send any response(not even logout) to this.

Following are logs

    Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
     field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260 56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119

Tried to send a reject while not logged on: Tag specified without a value (field 553) quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a value (field 553)
at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java: 1011) at quickfix.Session.next(Session.java: 1128) at quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java: 147) at quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java: 94) at quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java: 128) at java.lang.Thread.run(Thread.java: 745)

Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
QuickFix tried to send the reject but didn't send the reject because session is not logged in.

Not sure but Looks like this is bug at quickfix side ?
Because quickfix should send logout message to client in this case, or any other message which should tell client that
553 tag is empty or having invalid value.



Thanks
Vipin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in LOGON when LOGON message contain one empty field

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

the Logon message could not be processed, so there is no active FIX Session. IMHO you cannot send a
Logout back in this case.

Regards,
Chris.



On 02/03/17 12:07, Vipin Chaudhary wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi All,
>
> I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.
>
> Now In one case when client send Username value as empty then quickfix doesnot send any
> response(not even logout) to this.
>
> Following are logs
>
>     Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
>      field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260
> 56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119
> Tried to send a reject while not logged on: Tag specified without a value (field 553)
> quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a
> value (field 553)
> at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java:
> 1011) at quickfix.Session.next(Session.java: 1128) at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:
> 147) at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:
> 94) at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:
> 128) at java.lang.Thread.run(Thread.java: 745)
> Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
> QuickFix tried to send the reject but didn't send the reject because session is not logged in.
> Not sure but Looks like this is bug at quickfix side ?
> Because quickfix should send logout message to client in this case, or any other message which
> should tell client that
> 553 tag is empty or having invalid value.
> Thanks
> Vipin
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
--
Christoph John Development & Support Direct: +49 241 557080-28 Mailto:[hidden email]
http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH Oppenhoffallee 103 D-52066 Aachen Tel: +49 241 557080-0 | Fax: +49 241 557080-10
  Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...