Anu-rag-verma commented on PR #288: URL: https://github.com/apache/directory-server/pull/288#issuecomment-2917293083
Dear Team, After the above finding, I went back to my previous services where I used org.apache.directory.api:api-all:2.1.0 as a dependency for my LDAP operations which use this I18n class for logging. I checked the logs, and this PR makes more sense now. Please find the log comparison before and after the fix. It was totally a bug, messages were not in the format which they were expected as per the ROOT local. The functionality is working as expected after this fix. This fix improves the consistency and effectiveness of log messages. Previously, only error logs were functioning correctly, while message logs were not behaving as intended. After this fix, message logs now follow the same behaviour and reliability as error logs. ## Before Log 2025-05-27 02:37:58,685 INFO [org.apa.dir.api.lda.ext.ExtrasCodecFactoryUtil] (executor-thread-1) **MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.21.3)** 2025-05-27 02:37:58,686 INFO [org.apa.dir.api.lda.ext.ExtrasCodecFactoryUtil] (executor-thread-1) MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.5) 2025-05-27 02:37:58,686 INFO [org.apa.dir.api.lda.ext.ExtrasCodecFactoryUtil] (executor-thread-1) MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.3) ...... ...... 2025-05-27 02:37:59,179 DEBUG [org.apa.min.fil.cod.ProtocolCodecFilter] (NioProcessor-1) Processing a MESSAGE_RECEIVED for session 1 2025-05-27 02:37:59,180 DEBUG [org.apa.dir.api.CODEC_LOG] (NioProcessor-1) MSG_14000_DECODING_PDU () 2025-05-27 02:37:59,180 DEBUG [org.apa.dir.api.CODEC_LOG] (NioProcessor-1) 0x30 0x0C 0x02 0x01 0x01 0x61 0x07 0x0A 0x01 0x00 0x04 0x00 0x04 0x00 2025-05-27 02:37:59,184 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) **MSG_01007_LINE_SEPARATOR1** () 2025-05-27 02:37:59,184 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) MSG_01011_DECODING_PDU () 2025-05-27 02:37:59,185 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) MSG_01008_LINE_SEPARATOR2 () 2025-05-27 02:37:59,185 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) MSG_01012_STATE (TAG_STATE_START) ## Error Message Log (Same expected with Info Message) org.apache.directory.api.ldap.model.exception.LdapProtocolErrorException: **ERR_13508_INVALID_FILTER The filter (X)(&(objectClass=ifscmaster)(ifscCode=ABHY0065005)) is invalid.** at org.apache.directory.api.ldap.model.message.SearchRequestImpl.setFilter(SearchRequestImpl.java:184) at com.finobank.mta.service.RestIfscService.getSingleSearchRequest(RestIfscService.java:339) at com.finobank.mta.service.RestIfscService.searchIfsc(RestIfscService.java:308) at com.finobank.mta.service.RestIfscService_Subclass.searchIfsc$$superforward(Unknown Source) ## After Fix 2025-05-27 03:19:11,151 INFO [org.apa.dir.api.lda.ext.ExtrasCodecFactoryUtil] (executor-thread-1) **MSG_06001_REGISTERED_EXTENDED_OP_FACTORY Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.6** 2025-05-27 03:19:11,152 INFO [org.apa.dir.api.lda.ext.ExtrasCodecFactoryUtil] (executor-thread-1) MSG_06001_REGISTERED_EXTENDED_OP_FACTORY Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.1.11.3 2025-05-27 03:19:11,152 INFO [org.apa.dir.api.lda.ext.ExtrasCodecFactoryUtil] (executor-thread-1) MSG_06002_REGISTERED_INTERMEDIATE_FACTORY Registered pre-bundled intermediate response factory: 1.3.6.1.4.1.4203.1.9.1.4 ...... ...... 2025-05-27 03:19:11,485 DEBUG [org.apa.min.fil.cod.ProtocolCodecFilter] (NioProcessor-1) Processing a MESSAGE_RECEIVED for session 1 2025-05-27 03:19:11,486 DEBUG [org.apa.dir.api.CODEC_LOG] (NioProcessor-1) MSG_14000_DECODING_PDU Decoding the PDU: 2025-05-27 03:19:11,487 DEBUG [org.apa.dir.api.CODEC_LOG] (NioProcessor-1) 0x30 0x0C 0x02 0x01 0x01 0x61 0x07 0x0A 0x01 0x00 0x04 0x00 0x04 0x00 2025-05-27 03:19:11,491 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) **MSG_01007_LINE_SEPARATOR1 >>>==========================================** 2025-05-27 03:19:11,492 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) MSG_01011_DECODING_PDU --> Decoding a PDU 2025-05-27 03:19:11,492 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) MSG_01008_LINE_SEPARATOR2 >>>------------------------------------------ 2025-05-27 03:19:11,493 DEBUG [org.apa.dir.api.asn.ber.Asn1Decoder] (NioProcessor-1) MSG_01012_STATE --- State = TAG_STATE_START --- -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For additional commands, e-mail: dev-h...@directory.apache.org