blackducksoftware / hub-rest-api-python

HUB REST API Python bindings
Apache License 2.0
89 stars 104 forks source link

503 on function download_notification_report for report format JSON #239

Closed bmos1 closed 4 months ago

bmos1 commented 1 year ago

When generating an JSON report in the Black Duck UI the HUB will display the error "Unable to read report contents due to an unarchive operation error" when the generated report is too large to be read in the application. Error: 503

The provided fix patches with the broken function download_notification_report by replacing the download link from "content" to "download". The patched function always downloads the report as ZIP file like it was before for TEXT format only. Now the return value is consistent for all type of reports.

We provide the attached patch in the hope that it is useful for all and merged to master. 001-Reporting.patch

OffBy0x01 commented 4 months ago

Closing as stale - feel free to reopen if still needed

bmos1 commented 4 months ago

What does stale mean? We are using the patch in production to do reporting. As far as I know the python blackduck client has still the same issues, hence it is not compatible with the current REST API. Should we try to contact Synopsys support or do you recommend a PR?