IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 16 years ago

#776 closed defect (fixed)

pmConfig fails to detect invalid files

Reported by: rhl@… Owned by: Paul Price
Priority: low Milestone:
Component: psModules Version: 0.10.0
Severity: normal Keywords:
Cc:

Description (last modified by eugene)

(release v12_0) The code in pmConfig fails to check the error codes from loadRecipes (and
in fact errors from below are not propagated even as far as loadRecipes).

I have checked in patches to make loadRecipes return false when errors (such as invalid
keys) are detected, but have NOT made pmConfig fail as loadRecipes legitimately fails
when e.g. a file doesn't contain a recipe.

We should revisit this when we start using psErrorCode not bool as our status variable.

Change History (2)

comment:1 by eugene, 17 years ago

Priority: highlow
Status: newassigned

comment:2 by eugene, 16 years ago

Component: configpsModules
Description: modified (diff)
Resolution: fixed
Status: assignedclosed

pmConfig was long-ago changed to check the return value, and the API for loadRecipes was changed to have two bool return values, one for fatal and the other for non-fatal errors

(this does not deny the possible benefits of reworking psLib/etc return values, but that is a larger scale project than this bug).

Note: See TracTickets for help on using tickets.