-
Notifications
You must be signed in to change notification settings - Fork 64
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
Authentication inheritance consistency when importing a reactor in a federated execution #2326
Comments
It seems to me correct for this to fail, though I suppose it could generate a better error message. |
@Jakio815 what should be the expected behavior here? I think that with the latest this will "just work," enabling auth automatically. But let me verify. |
Indeed, it works now, but I'm pretty sure it won't work if, say, the main file imports two different files, one that does support auth and one that does not. Either way, let's consider this fixed for now. |
Yeah, it seems to need to fail with a better error message. However, the federate does not know if the RTI is compiled with the -a option. So first, RTI should fail with sending a reject signal. I'll make a PR for this. However, I'm not sure what happens to R0. R1 will start send a HMAC authentication, however, I don't know what will R0 will do. Will it inherit the target properties of the imported reactor? |
Now, yes. |
Great. Then I'll make the RTI send a failed signal. |
It already seems to do send a failed signal. I'll just fix the error message. |
I'm not sure I understand. The example as given compiles and runs in |
Oh, I'll clarify the total thing. So, no problems in compilation. The situation happens when federates are compiled using the The federate will start sending So, as Dr. Lee suggested to produce better error codes, I'll just add some better error messages, to turn on the |
But is the given example expected to fail? Right now it just executes. |
The example itself should not fail if the RTI was executed properly with the |
In a federated program that does not enable authentication (using
auth
C target property), importing a reactor from a file where authentication is required will cause the program to fail.To reproduce, consider the following 2
lf
programs:R1.lf
:And
IssueAuth.lf
:Executing
IssueAuth
says:The reason is that
r1
wants to proceed with authentication (Message id 100), while the RTI is not expecting such a message, but rather the neighborhood structure.The text was updated successfully, but these errors were encountered: