Replies: 4 comments 1 reply
|
The Github markdown has hidden your example - you should wrap it in code tags. |
1 reply
|
Unfortunately the current implementation does not retain the original file name. |
0 replies
|
Just released 4.3.0. which will allow you to use this to get the original file name: |
0 replies
|
Closing - if you still have issues please reopen this. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm confused about how to simply set the AS2 subject to the entire filename (after the sender/receiver id parts and the following first dash character, e.g.: SENDER-RECEIVER-entirefilename -- I want to be able capture everything after that, even if it has a dash character in it).
I've reviewed the documentation (which seems to have an error where it repeats the same example twice).
I was surprised to find if I simply use this:
<attribute name="subject" value="$attributes.filename$"/>OpenAS2 will only return the part of the file name before the first dash.
E.g., if I create SENDERID-RECEIVERID-AS2-TEST-2, I only get "AS2" in attributes.filename.
Is this behavior intended or just oversight due to how the full original filename is parsed when creating a file in the toAny directory?
Am I missing something?
Thanks!
All reactions