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

Can't send AS2 message when the sender or reciever has space in their AS2 ID #92

Closed
ihudedi opened this issue Aug 8, 2019 · 1 comment
Assignees
Labels

Comments

@ihudedi
Copy link

ihudedi commented Aug 8, 2019

Hi Philip,
There is an issue that when AS2 ID contains space the AS2 LIb cut the ID like:

The AS2 ID in the header should be quoted according to the specification, and since they are not on the headers of the message received by the client, the receiving application will interpret the AS2 ID up until the first space. Then

AS2-To: Cleo; - TEST is interpreted by the receiving application as Cleo;
AS2-From: BMC AWS is interpreted by the receiving application as BMC

Could you please check this issue and if there anything to do wrkarounf until you fixed it or where to fix it.

Thanks,
Itay

@phax phax self-assigned this Aug 8, 2019
@phax phax added the bug label Aug 8, 2019
@phax
Copy link
Owner

phax commented Aug 18, 2019

Hi @ihudedi it took some time, but I think I found a decent solution for this. I checked with RFC 2616 encoded header values and added automatic quoting if necessary. So 4.4.2 will do the trick for you.

If you are interested, the main change is in HttpHeaderMap.getUnifiedValue in ph-commons 9.3.6, which in turn invokes the new RFC2616Codec class. hth

@phax phax closed this as completed Aug 18, 2019
phax added a commit that referenced this issue Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants