--- /dev/null
+# Description
+
+Created when a bug was found - Transaction gets cleaned by
+AppLayerParserTransactionsCleanup before detection is run in the to_client
+direction when stream.midstream=true and first packet is to client direction.
+
+https://redmine.openinfosecfoundation.org/issues/7552
+
+# PCAP
+
+PCAP created by selecting packets from ../http-gap-simple/input.pcap
\ No newline at end of file
--- /dev/null
+alert http any any -> any any (msg:"HTTP Stat Code Response"; http.stat_code; content:"200"; sid:1;)
\ No newline at end of file
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+ - -k none --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
--- /dev/null
+# Description
+
+Created when a bug was found - Transaction gets cleaned by
+AppLayerParserTransactionsCleanup before detection is run in the to_client
+direction when stream.midstream=true and first packet is to client direction.
+
+https://redmine.openinfosecfoundation.org/issues/7552
+
+# PCAP
+
+PCAP from ../../ldap-unsolicited/ldap.pcap
\ No newline at end of file
--- /dev/null
+# we want alert tcp instead od alert ldap to test one more edge case
+alert tcp any any -> any any (msg:"Test LDAP response operation"; ldap.responses.operation:extended_response; sid:1;)
\ No newline at end of file
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+ - -k none --set stream.midstream=true
+
+pcap: ../../ldap-unsolicited/ldap.pcap
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1