-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fetch relevant filters for ReportConfig when load functions is called. #238
Comments
Can you give us a little bit more info on the specifics of your use case? When I load a ReportConfig all of the filters are returning correctly (see below). Can you let us know what version of Nexpose you're using, along with the OS and the Ruby version? It would helpful to know the exact report you're trying to use and the filters you're trying to add. Also feel free to copy/paste the script you're using and we'll be glad to be a second pair of eyes. :D
|
Nexpose Version : 4.0.5 Below is how I am creating and saving report.
Below is what I am trying to use for loading same report again
Which gives me output as below
|
Can you do a |
Here is the xml,
|
Yeah i'm not seeing the issue honestly, I just re-ran what you showed (minus the user stuff), and it worked fine for me?
[5] pry(main)> report = Nexpose::ReportConfig.new(report_filename, "audit-report", 'pdf') [6] pry(main)> group_id = 1 [8] pry(main)> report.save(nsc)
|
Can you try seeing what happens if you don't include the following during creation?
|
Ok so when I commented above two lines. Now it is showing me filters. So is it expected behavior? |
@snehitgajjar no, it's not expected behavior :) I also can you show me what the |
Report object before saving (Users are added but Delivery is commented out):
Report config after loading (Filters are blank):
Function 'create_email' :
|
okay. did saving and loading with just the users work? |
It was just with users it returns nil filters. So if I use Delivery or User or Both, it returns Empty Filters. |
After loading the report config, do |
OUTPUT FOR
|
@snehitgajjar just as a heads up, we have not be able to reproduce your issue, but we're still working on trying to figure it out. In the meantime, you could possibly just have your script save the config with the filters and without the users and delivery options. Then reload the config and add the users and delivery options. Hopefully that will get functional (although not an awesome workaround). Let us know if you have any additional info to add. |
@sgreen-r7 Thank you for looking into it. I will use workaround on this one until it's been fixed. I will post if there is additional information. |
Closing this out since we could not reproduce the issue. Feel free to re-open or open a new issue if you have anything new on this. |
If we create a ReportConfig object and add some filters to it but when I try to load same ReportConfig object using config_id it gives me back name and other information but does not return relevant filters which I added.
The text was updated successfully, but these errors were encountered: