-
Notifications
You must be signed in to change notification settings - Fork 203
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
Import fails on large property_name (>64) #1711
Comments
@joni1993: I'm not so happy with this change, as it has a notable performance impact and no real-world value. |
I dont know the Database structure very well but why is the table "import_row_modifier" using "property_name VARCHAR(255) NOT NULL," then but "imported_property" is only using VARCHAR(64)? |
You're right, it should be I had a quick look at the |
No i don't know why it flattens it but probably because of easier access to variables.
To access the address i tried apply a modification to the property with the "Decode a JSON string" function but the result is always null. Is the "Decode a JSON string" here wrong? |
No need to decode this, if the module provides raw data to the Director this is internally already handled as structured data. If the shown data is the value for the |
Thanks, I didn't know that. Would be great the have that in the documentation.
Is this due the fact that the source is delivering the address in the format: "1.2.3.4/24"? Another thing is that i cant use a filter expression like |
Could you please show me an (anonymized) preview screenshot for your import source? |
Oh, now I see -> in the former error message it shows:
The first row seems to be the problem, does the module ship a Title row or similar as a first row? You could try to use the |
No i dont think it does so. But i think its maybe an error in the JSON output because the Properties are not in double quotes. I think its a problem with the Module in the first place so i dont want to waste your time any longer. Thanks for your support and your awesome product! |
You're welcome! If you (or the module writer) need more help please let me know. |
I'll close this issue for now, as I'd prefer to not increase the property_name field length. |
Expected Behavior
Import should be successfull even on larger property_names
Current Behavior
Import fails with error complaining about property_name being to large.
Possible Solution
See #1712
Steps to Reproduce (for bugs)
Alternatively it should also be triggered without the netboximport module when using large names in the property_name.
Your Environment
icinga2 --version
): r2.9.2-1The text was updated successfully, but these errors were encountered: