Bug 2410

setting a blob variable to NULL makes the blob variable usuable 15 March, 2021

mike S
03 March, 2019
Product: PowerServer 2020 or older (Obsolete) Category: Other
Version: 2017 Build:
Classification: Issue Publishing: Public
Priority: P3
Status: Closed Reason: NO RESPONSE
Kai Zhao @Appeon 15 March, 2021
Hi Mike,

Based on our policy we have made 3 different attempts to contact you and determine if this ticket has been solved, unfortunately, we did not get any response and we proceed to close it.  

If you consider this issue is still not fixed please contact us. 

Kai Zhao @Appeon 07 January, 2021
Hi Mike,

We have been trying to keep in touch with you to find out about the resolution of this issue, we would like to continue with our support but without more information, we are in the need to close it in the next 3 working days, according to our internal help support policy but please remember you can always open a new ticket.  

Kai Zhao @Appeon 14 December, 2020
Hi Mike,

I would like to check with you if the response provided has been helpful enough
to resolve your case. If so, can we proceed to close the ticket?
Otherwise, do let us know if we can provide you with any further assistance and
keep in mind that you are always welcome to open another ticket in case you
need it.

Kai Zhao @Appeon 01 November, 2020
Hi Mike,

Thanks for providing the information. Kindly please provide a simple PB case to call the API to reproduce the issue to us for more study, thanks.

mike S 30 October, 2020
use case:

how to use keys for authorization:

Kai Zhao @Appeon 30 October, 2020
Hi Mike,

Sorry for the late reply. It seems the azure account key is private. Could you please provide a test case and tell me where the azure account key would be used? Thanks!

mike S 04 March, 2019
It may have to do with sending in the blob as a reference parameter to a function, possibly in combination with being in the constructor event of a user object and the object that holds the function being auto instantiated.

anyway send me azure account keys and i can send you an app to show the problem.
mike S 04 March, 2019
send me your azure account information ( keys ) if i have to setup a test case to show you.
Kai Zhao @Appeon 04 March, 2019
Hi Mike,

Sorry, I am not quite understand the issue, please provide a simple PB case to reproduce it to us for more study, thanks.

mike S 03 March, 2019
i think blobmid is be the problem:

ablob_Message = BlobMid(lblob_Decoded, 1, lul_BufLen)

have to test it, but if setnull(ablob_Message) is done prior blobmid i bet the resulting blob is messed up.
mike S 03 March, 2019
using blobs in powerserver with azure rest api to sign requests.

in powerbuilder i use setnull() on the blob variable, then set the value using windows api 

this is the api used:

Blob lblob_Decoded
CryptStringToBinary(as_encoded, lul_MsgLen, CRYPT_STRING_BASE64, lblob_Decoded, lul_BufLen, lul_Skip, lul_pFlags) 

ablob_Message = BlobMid(lblob_Decoded, 1, lul_BufLen)

the setnull seems to make the variable invalid (azure rejects the signed request)

if i don't do the setnull, then everything is fine, the setnull works fine in powerbuilder

ablob_Message is defined as a reference argument to the function that runs the windows api.

*Reproduce Steps:
blob iblb_value

PowerServer (PB Edition) 2017 R3 Build 1858.00

it seems that setting the blob variable to null may be setting the pointer to null?? or maybe overwrites some other memory??

i can work around this by setting the blob to an empty string instead of null if i need to clear it.
License Type:
Application Server:
Web Server:
Database Type:
Database Version:
OS for Mobile Device:
OS version for Mobile Device:
Mobile Device Type: