-
Notifications
You must be signed in to change notification settings - Fork 49
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
Exception thrown when Properties not defined (maltego.py) #22
Comments
Hi @MaltegoThinus, could you add some steps for reproducing this issue? Are you running on the latest version? In server mode, |
Hi @phdowling, yes: it's a local Transform only thing. If there are no additional arguments, then this error occurs because the "if len(LocalArgs) > 1" loop (line 287 in "maltego.py") is never executed, and the TransformSettings in line 297 is never initialized. I think this is only possible when testing the Transform from the cmdline, since I don't duplicate properties when specifying the main value only. I think (not sure) that when the Local Transform is run from Maltego, it will add the "value" argument as well as a property for the main property. To reproduce this, you can add a line to the GreetPerson example: "request.getProperty("randomstuffhere")", and then run the Transfrom from the terminal "python project.py local greetperson Thinus". I test Transforms this way all the time, before wiring them into Maltego. Not sure if it's a common workflow. |
Fixed in PR #27 |
Close with reference to #27 |
If an Entity does not have Properties, calling the "getProperty" method causes an exception, since "Properties" is not defined.
This is in "maltego.py":
I suggest initializing an Empty "Properties" variable.
The text was updated successfully, but these errors were encountered: