Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Audit Report Bug Fixes #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Andrew-Woodford
Copy link

Could not delete audit reports via the python SDK for two reasons:

  1. AuditReport class used the default Resource delete function. In the AuditReport class, this causes the 'job' endpoint to be used rather than the 'login'/'file'/etc endpoint with the complete url.
  2. When an audit report is deleted it returns a 204 HTTP status. Currently the check_response function only accepts a 200 code and hence was throwing an exception.

I have implemented fixes to both functions. Would advise a wider catch on HTTP status codes to include all 2XX codes.

…ather than report endpoint and therefore failing. Additionally, when an audit report is successfully deleted it returns a 204 status (i.e. no content) and the check_response function fails if the status is not 200 so also added no content as a valid HTTP response.
@skamensky
Copy link

Why was this never merged?

@Andrew-Woodford
Copy link
Author

No idea unfortunately, never got a response after putting up the pull request. Not looked at the API recently so don’t know if it’s changed, but feel free to use the changes.

@skamensky
Copy link

Did you ever end up integrating with Egnyte? What was your experience?
If you wouldn't mind shooting me an email to my thowaway account [email protected] I'd appreciate it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants