Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to unpack messages with custom headers in case java(pack)-->python(unpack) #6

Open
rodolfomiranda opened this issue Jun 20, 2022 · 1 comment

Comments

@rodolfomiranda
Copy link

If a java client packs a message that includes a custom header, when it is unpacked by Python client, it fails with MalformedMessageCode.INVALID_PLAINTEXT error.

The other cases works fine: java-->java, python-->python, python-->java. All are unpacked without error.

How to reproduce the error:

  • add .customHeader("return_route","all") in line 109 of DIDCommDemoHelper.kt
val message = Message.builder(
            id = UUID.randomUUID().toString(),
            body = mapOf("msg" to data),
            type = "my-protocol/1.0"
)
.customHeader("return_route","all")
.build()
  • rebuild
  • run demo.py
  • check error at the end:
    Bob received MalformedMessageCode.INVALID_PLAINTEXT.

Same results were obtained using both libraries but outside this demo, just to confirm that is not a problem of the demo code. I'm opening the issue in this repo because I can't say if it's a problem in the python library or in the JVM library.

@dhh1128
Copy link
Contributor

dhh1128 commented Aug 15, 2022

tagging @dmitry-vychikov and @dkulic, so you at least see this issue. It may be relevant for some of your current work because at least the java DIDComm v2 libraries are likely to be relevant, and the error may be on the java side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants