-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-33172 Zap Report should use default timerange #19388
base: candidate-9.8.x
Are you sure you want to change the base?
HPCC-33172 Zap Report should use default timerange #19388
Conversation
- Supports requests sans timerange Signed-off-by: Rodrigo Pastrana <[email protected]>
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-33172 Jirabot Action Result: |
Confirmed timerange-less requests result in valid ZIP file:
|
Fix removes unnecessary thrown exception when no start/end nor relative time range is found. This allows the default relative time frame +- 12 hours to be used. |
@asselitx let's meet to discuss the broader problem exposed by this issue. It seems all input validation issues reported as exceptions are handled outside of the createAndDownloadWUZAPFile(), which seems to leave the zip file in an invalid state. See screenshot. We need to decide how these types of errors are reported back to the user. We could report the error within the file (*.log file in this case) or in a general status file for the entire ZAP report (for some reason I seem to think that file already exists, but I'm not sure) |
@asselitx please review |
Ok yes we should talk about that. There is an "info" file included in the ZAP that is a kind of summary of the ZAP. I put a note in there when log files are excluded due to permissions. For other input validation failures we could add lines there too. There is another code path to check- CWsWorkunitsEx::onWUCreateZAPInfo, which handles POST requests from ECLWatch. It seems that the intention may have been that these exceptions are reported to the user in ECLWatch for this case. But if you are calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the +- 12 hour default applied? It may be preferable to make it explicit when extracting the relativeTimeBufferSecs to use 12hrs as the default. If it is explicit anywhere else I couldn't find it.
Type of change:
Checklist:
Smoketest:
Testing: