Connection reset error when MLE response is enabled in createPayment Call
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Beginne mit samples/MLEFeature/PaymentsWithMLE.java und reproduziere das mit request-and-response MLE. Verfolge anschließend den fehlschlagenden Aufruf durch Api.PaymentsApi.createPayment und Invokers.ApiClient.execute. Prüfe, wie response MLE konfiguriert ist und ob die Payments API dies unterstützt; abgeschlossen ist die Aufgabe, wenn der Zahlungsaufruf mit aktiviertem response MLE abgeschlossen wird oder das unterstützte Verhalten und die erforderliche Konfiguration eindeutig dokumentiert sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
While verifying Message Level Encryption (MLE) integration using this SDK together with the official sample repo cybersource-rest-samples-java, I encountered a Connection reset exception only when MLE response encryption is enabled.
The same sample works fine when:
MLE is enabled for request only, or
MLE is disabled entirely.
Enabling both request and response MLE consistently results in a socket connection reset during the payment API (pts/v2/payments) call.
Environment
SDK: This repository (latest which is version 0.087 at this moment)
Samples repo: https://github.com/CyberSource/cybersource-rest-samples-java (latest that uses this SDK ver 0.087)
Sample used: samples/MLEFeature/PaymentsWithMLE.java
Java version: Java 8
OS: Linux
Steps to Reproduce
Clone the sample repository:
git clone https://github.com/CyberSource/cybersource-rest-samples-java
Open the sample:
samples/MLEFeature/PaymentsWithMLE.java
Modify the merchant configuration to enable request and response MLE:
Change (around line #84):
merchantProp = ConfigurationWithMLE.getMerchantDetailsWithMLE1();
To:
merchantProp = ConfigurationWithMLE.getMerchantDetailsWithRequestAndResponseMLE1();
Run:
PaymentsWithMLE.java
Expected Behavior
The payment request should complete successfully when MLE response encryption is enabled, just as it does when only request MLE is enabled.
Actual Behavior
The request fails with a Connection reset error:
Invokers.ApiException: java.net.SocketException: Connection reset
at Invokers.ApiClient.execute(ApiClient.java:1117)
at Api.PaymentsApi.createPaymentWithHttpInfo(PaymentsApi.java:348)
at Api.PaymentsApi.createPayment(PaymentsApi.java:331)
at samples.MLEFeature.PaymentsWithMLE.run(PaymentsWithMLE.java:90)
at samples.MLEFeature.PaymentsWithMLE.main(PaymentsWithMLE.java:34)
Caused by: java.net.SocketException: Connection reset
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:318)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
Additional Notes
The failure happens only when response MLE is enabled.
The same credentials and configuration work correctly when response MLE is disabled.
This appears to occur before a valid HTTP response is received (connection reset at socket level).
Questions / Help Requested
Is response MLE currently supported for the Payments API in this SDK?
Are there additional configuration steps required for enabling response MLE?
Is this a known issue or regression?
- Vorherrschende Sprache
- Java
- Sterne
- 29
- Forks
- 50
- Ø Merge
- 1 Std. 30 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CyberSource/cybersource-rest-client-java
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
CyberSource/cybersource-rest-client-java#241 · 1 Reaktion ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 58/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
CyberSource/cybersource-rest-client-java#235 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
CyberSource/cybersource-rest-client-java#218 · 1 Kommentar ·
Alle Issues in CyberSource/cybersource-rest-client-java
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
a2aproject/a2a-java#1275 ·
Maintainer antworten meist innerhalb von 1 Tag
-
module/ftp Type/Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ballerina-platform/ballerina-library#9476 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
anwilli5/coin-collection-android-US#515 ·
Maintainer antworten meist innerhalb von 1 Tag
-
status: waiting-for-triage type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
spring-projects/spring-integration#11654 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
Vakore/ZappierGames#248 ·