error on sig pad save.
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- Contact:
error on sig pad save.
I'm getting the error "Operation Prevented by Exit Program" when trying to save the contents of a Signature Pad widget. Anyone else come across this? Anyone know which exit point may be being invoked?
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: error on sig pad save.
Are you attempting to upload the signature pad as an image? (vs. saving the source in a variable, as is normal?)
If so, it would be the file upload exit program (PUIUPLEXIT).
http://www.profoundlogic.com/docs/display/PUI/Security
If not, then please explain further.
If so, it would be the file upload exit program (PUIUPLEXIT).
http://www.profoundlogic.com/docs/display/PUI/Security
If not, then please explain further.
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- Contact:
Re: error on sig pad save.
Yes, using the pui.uploadSignature API.
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- Contact:
Re: error on sig pad save.
Noticed something odd. Not sure if it applies.
The source for PUIUPLEXIT accounts for image/jpeg file types.
However, when I load that program into the debugger, it does not. The source in the debugger looks completely different.
I started a service job over my http job, and put the program into debug. It didn't stop, that's why I wasn't sure if it was applicable. However, I'm not sure which job would handle the API call (pui.uploadSignature).
I'm also not sure if the source for the exit program is up to date, or the actual exit program is up to date.
The source for PUIUPLEXIT accounts for image/jpeg file types.
However, when I load that program into the debugger, it does not. The source in the debugger looks completely different.
I started a service job over my http job, and put the program into debug. It didn't stop, that's why I wasn't sure if it was applicable. However, I'm not sure which job would handle the API call (pui.uploadSignature).
I'm also not sure if the source for the exit program is up to date, or the actual exit program is up to date.
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- Contact:
Re: error on sig pad save.
Ok, So I bit the bullet. Saved the current program object and compiled the source in PROFOUNDUI/QRPGLESRC,PUIUPLEXIT and the save of my signature
worked. I don't think we're doing any other types of uploads other than CSV exports.
worked. I don't think we're doing any other types of uploads other than CSV exports.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: error on sig pad save.
By default, there is no compiled exit program included with the product. We do provide an EXAMPLE source member that demonstrates allowing jpeg's and also text files < 10mb. But, this is just an example....
The idea is that you copy this source into your own library (the source file that's included with the product is replaced each time you upgrade, so don't put your code there) and modify it to suit your needs. Then compile it into the product library. (The compiled program is not replaced during upgrades -- only the source code.)
From your description, it sounds like someone created an exit program in the past that did not allow your images. When you looked at the source code, you looked at our example source that gets replaced each time you upgrade, and so you saw something different from what the exit program was compiled with.
The idea is that you copy this source into your own library (the source file that's included with the product is replaced each time you upgrade, so don't put your code there) and modify it to suit your needs. Then compile it into the product library. (The compiled program is not replaced during upgrades -- only the source code.)
From your description, it sounds like someone created an exit program in the past that did not allow your images. When you looked at the source code, you looked at our example source that gets replaced each time you upgrade, and so you saw something different from what the exit program was compiled with.
Who is online
Users browsing this forum: No registered users and 1 guest