mohandev2 / openhpi_old

Other
0 stars 0 forks source link

saHpiResourceSeveritySet not checking for valid SessionId #497

Closed mohandev2 closed 6 years ago

mohandev2 commented 20 years ago

saHpiResourceSeveritySet_T2 OpenHpi infrastructure should catch that this was an invalid sessionId and return the proper error code.

Reported by: sdague

Original Ticket: "openhpi/bugs/497":https://sourceforge.net/p/openhpi/bugs/497

mohandev2 commented 20 years ago

Original comment by: sdague

mohandev2 commented 20 years ago

Logged In: YES user_id=21949

Turns out it was checking for a valid session, but only after checking for the validity of the resource id being passed.

I have since changed the order of checking, however the current behavior is compliant and this test case should be modified to ensure that it is passing valid resource parameters if it is expecting only a fail on invalid session.

Assigning to Carl to fix / add tests in this area.

Original comment by: sdague

mohandev2 commented 19 years ago

Original comment by: renierm

mohandev2 commented 19 years ago

Logged In: YES user_id=1000392

Corrected resourceId in the Test.

Carl McAdams

Original comment by: carlmc1

mohandev2 commented 19 years ago

Original comment by: carlmc1