You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rare cases processing a BOM file may fail. Since processing happens after the upload has finished and returned a 200-OK, this is only visible in logfiles. If someone has attached a log-analytics system to his logfiles, or is using email-notifications on errors, he might notice a problem, but otherwise it's hard to identify. Since many won't have log-systems in place, and email errors also contain a lot of noise about vuln-db updates, many won't have that either. Especially not the ones responsible for specific projects.
Proposed Behavior
Even though implementing a full error notification in UI might be too much for this project, at least some indication on a project would be helpful.
Idea:
If processing a BOM file produces errors, set a flag with timestamp at the project "bomUploadFailure=DateTime".
Indicate with a red exclamation mark or similar icon in the project List and Project view and a tooltip "Last BOM Upload at [Timestamp] produced errors. See Logs for Details."
If a following BOM upload succeeded without errors, the timestamp shall be cleared again
This would help to notice problems at low cost, and the timestamp gives a chance to identify the issue in logfiles/log-analytics systems. Ideally, the Project ID should be logged at such errors if not the case already, too. A project responsible could then request help from administrators if necessary.
Could it be a notification i.e. BOM_FAILED? In a ideal world failing BOM uploads should be very very rare so not sure if it's worth the effort to add more fields, deal with timing/parallelism, etc.
I meant: Instead of a UI visibility, put a new option in PORTFOLIO alerts :)
Since this really should not be a case happening often, an alert should be sufficient.
We definitely also need to communicate / store the failure reason somehow. Having this information persistent (until the next BOM upload succeeds, at least), would allow clients to determine whether or not they should retry the upload.
@rkg-mm Clients are already polling the API for the processing status. We could add a new endpoint that, instead of just returning true or false, returns a proper status (COMPLETED, FAILED, UNKNOWN), or even an entire object with more details.
That way clients would receive an indication as to if they should check for error information. Or we find a way to provide this info directly in the status response.
But perhaps adding a notification and providing more details to clients are two separate enhancements. The former is trivial to add, the latter requires a bit more planning.
Activity
valentijnscholten commentedon Dec 13, 2022
Could it be a notification i.e. BOM_FAILED? In a ideal world failing BOM uploads should be very very rare so not sure if it's worth the effort to add more fields, deal with timing/parallelism, etc.
rkg-mm commentedon Dec 20, 2022
Hmm ok I agree, this could be done as additional PORTFOLIO alert instead. The current alerts don't cover it.
msymons commentedon Dec 20, 2022
"instead" or "in addition to"? There are merits to both approaches.
rkg-mm commentedon Dec 20, 2022
I meant: Instead of a UI visibility, put a new option in PORTFOLIO alerts :)
Since this really should not be a case happening often, an alert should be sufficient.
nscuro commentedon Feb 24, 2023
We definitely also need to communicate / store the failure reason somehow. Having this information persistent (until the next BOM upload succeeds, at least), would allow clients to determine whether or not they should retry the upload.
rkg-mm commentedon Feb 24, 2023
@nscuro the client would not get this information because the failure happens in a task after the upload call finished.
nscuro commentedon Feb 24, 2023
@rkg-mm Clients are already polling the API for the processing status. We could add a new endpoint that, instead of just returning
trueorfalse, returns a proper status (COMPLETED,FAILED,UNKNOWN), or even an entire object with more details.That way clients would receive an indication as to if they should check for error information. Or we find a way to provide this info directly in the status response.
nscuro commentedon Feb 24, 2023
But perhaps adding a notification and providing more details to clients are two separate enhancements. The former is trivial to add, the latter requires a bit more planning.
nscuro commentedon Mar 22, 2023
Implemented in #2600. Thanks @rkg-mm & @rbt-mm!
github-actions commentedon Apr 22, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.