-
Notifications
You must be signed in to change notification settings - Fork 43
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
Do a "reverse" partnership lookup when receiving a message? #8
Comments
I don't really understand what you exactly want. You want to thave |
Okay, let me try again. ;-) |
Okay- I think I'm getting a little closer to understanding. Your assumption is, that all partnerships are reversibly exchangable. This is not true concerning what I have seen so far. If this is something that is special to your use case, I suggest to stick to your implementation :) I see no realistic way that the automatic reverse handling will work for everbody. |
Yes, that's what I assumed. Sorry, I'm quite new to AS2, and I'm not familiar with all the possible setups. Could you please give an example where that would not work? I wonder what the difference could be. I can imagine different setups for sending and receiving messages but not for sending a message and receiving a DN. |
One possible example is that your are sending unsigned but expect a signed MDN back. In general, if the signing setup differs between message and MDN. Additionally there are attributes like 'subject' or 'as2_mdn_to' that might be differing. |
Hm, that still feels like a single partnership with outbound_signing_options and inbound_signing_options to me, but I guess that's a matter of taste. Thanks for the explanation. |
Exactly. You could group things for signing, encryption, transfer, resend etc. as it is done for the partners. But as this is a fork of OpenAS2 I want to provide some basic compatibility with it and stick to it :) |
Do you have concrete plans on providing the MongoDB based partnership factory? Shall I wait for it, or will you come back to me when you're ready? Thanks |
I've created a Gist for the current version: https://gist.github.com/jochenberger/e147a739a9e6e8ed58b1 |
Do you mind if I make this a subproject in as2-lib and give you collaboration rights to push on that subproject? |
You can do that, but I doubt that I'll find the time to work on this in the next few weeks. Can I use Gradle and Spock or do I have to use Maven? |
I would take care about the Maven stuff. Concerning the tests, if you can enable Spock only for that sub-project I have no strong feelings. |
I prefer Apache 2, but FreeBSD should be okay too. |
OK. I made the subproject Apache 2 licensed - no problem. |
I added a basic test, seems to work. I'm having issues with Maven/Eclipse/Groovy however (Plugin execution not covered by lifecycle configuration: org.codehaus.gmavenplus:gmavenplus-plugin:1.4:compile (execution: default, phase: compile)), maybe you can get it to work. |
thanks a lot for adding a test. If just added some minor cleansings when using this from within Eclipse. On the commandline it works just fine! |
This is a question rather than an actual issue.
I have created a custom
IPartnershipFactory
that stores partnerships in a MongoDB collection. (I could contribute the code if you're interested).I have noticed that for a local station L and a remote station R, I need two partnerships, one with sender L and recipient R and one with the parameters exchanged.
I have implemented
getPartnershipByID(IStringMap, IStringMap)
to use a reverse query and create thePartnership
object in the "wrong" direction. I wonder if that should be done somewhere within the library code. because the library knows whether the message is incoming or outgoing.The text was updated successfully, but these errors were encountered: