NetXMS Support Forum

English Support => General Support => Topic started by: Staj on August 20, 2020, 07:45:51 AM

Title: ReadPersistentStorage() if key not exist
Post by: Staj on August 20, 2020, 07:45:51 AM
According to the documentation, ReadPersistentStorage() (https://www.netxms.org/documentation/nxsl-3.0/#func-readpersistentstorage) is suppose to return null if key does not exist but it seems to be returning an empty string ("") for a recently deleted (This is all happening within EPP) Persistent Storage value.

Is this a bug?
Title: Re: ReadPersistentStorage() if key not exist
Post by: Filipp Sudanov on August 20, 2020, 04:16:40 PM
So you are deleting also from EPP?
If you are deleting from NXSL, do you delete like this:
WritePersistentStorage("key1", NULL);
Title: Re: ReadPersistentStorage() if key not exist
Post by: Victor Kirhenshtein on August 21, 2020, 03:30:39 PM
It's a known bug - https://track.radensolutions.com/issue/NX-1897 (https://track.radensolutions.com/issue/NX-1897). Fixed in 3.4.284.

Best regards,
Victor