Version 5.5.153 - Script Signing cropping last lines of code

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
mnelson
Posts: 2
Joined: Wed Aug 31, 2016 10:12 am

Version 5.5.153 - Script Signing cropping last lines of code

Post by mnelson » Tue Jul 31, 2018 8:43 am

Product, version and build:
32 or 64 bit version of product: Sapien PowerShell 2018 5.5.153
Operating system: Windows 10 Edu 1803 July '18 Patch
32 or 64 bit OS: 64bit

*** Please add details and screenshots as needed below. ***

The newest update has been creating a problem with script saving and certificate signing. When a change is made, the script signing deletes the last line (Or overwriting it). This can be problematic as it's been replacing/cropping closing brackets or even overwriting my code.

Thanks for any advice or updates you can provide! This didn't happen in 5.5.152 update.
Attachments
2018-07-31 11_29_40-SAPIEN PowerShell Studio 2018.png
Before making a change
2018-07-31 11_29_40-SAPIEN PowerShell Studio 2018.png (15.52 KiB) Viewed 305 times
2018-07-31 11_30_16-SAPIEN PowerShell Studio 2018.png
after making a change and the script is signed
2018-07-31 11_30_16-SAPIEN PowerShell Studio 2018.png (11.87 KiB) Viewed 305 times

User avatar
davidc
Posts: 5334
Joined: Thu Aug 18, 2011 4:56 am

Re: Version 5.5.153 - Script Signing cropping last lines of code

Post by davidc » Tue Jul 31, 2018 9:47 am

We are unable to reproduce this issue on our end.

Please take a screenshot of your signing setting (Options->PowerShell) and if you can, zip and upload the script in question here:

https://www.sapien.com/support/upload

Does this occur with a particular script file or all your files?
David
SAPIEN Technologies, Inc.

User avatar
mnelson
Posts: 2
Joined: Wed Aug 31, 2016 10:12 am

Re: Version 5.5.153 - Script Signing cropping last lines of code

Post by mnelson » Thu Aug 09, 2018 11:12 am

Sorry in advance for the delays busy trying to finish projects and work before the start of the new semester.

So it does it with pretty much any script that I have. When you save the file, it crops the last line from the script and replaces the Signature Block. Saving it multiple times without having created empty lines will cause it to clip/crop the last lines of my code.

We use an internal PKI Certificate infrastructure that I created that hasn't had any issues. If I use a script signing tool I have, it doesn't have any of the issues, it just updates the Signature Block. I have another computer with version 5.5.152 that doesn't have the problem with the script files I use on my primary computer.

I might have to remove 5.5.153 from my primary as it has caused some occasional problems for me. :P

I'll upload a reduced version of my script when I get the chance. Some of the material within is internal and sensitive.
Attachments
2018-08-09 14_04_37-SAPIEN PowerShell Studio 2018.png
Script Signing Settings
2018-08-09 14_04_37-SAPIEN PowerShell Studio 2018.png (24.53 KiB) Viewed 115 times

User avatar
davidc
Posts: 5334
Joined: Thu Aug 18, 2011 4:56 am

Re: Version 5.5.153 - Script Signing cropping last lines of code

Post by davidc » Thu Aug 09, 2018 4:17 pm

We are still unable to reproduce the issue. We plan to release a new build next week, so let's see if the issue persists with the new version.

If you are encountering other issues, I highly recommend posting them here so that they can be addressed.
David
SAPIEN Technologies, Inc.