Skip Menu |

This queue is for tickets about the Win32-MSI-HighLevel CPAN distribution.

Report information
The Basics
Id: 84047
Status: rejected
Priority: 0/
Queue: Win32-MSI-HighLevel

People
Owner: grandpa [...] cpan.org
Requestors: eitan.schichmanter [...] hp.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Can't open a MSI file from a mapped network drive
Date: Tue, 19 Mar 2013 08:59:13 +0000
To: "bug-Win32-MSI-HighLevel [...] rt.cpan.org" <bug-Win32-MSI-HighLevel [...] rt.cpan.org>
From: "Schichmanter, Eitan" <eitan.schichmanter [...] hp.com>
Hello, I was developing some information gathering script in Perl for a Windows build and started using Win32::MSI::HighLevel. My artifacts folder was on a mapped network drive (\\server\folder<file:///\\server\folder> ==> P:) so I was trying to use the following code: $fN = 'P:\path_to_file\file.msi'; my $msi = Win32::MSI::HighLevel->new(-file => $fN); When running I received the following run-time error: Win32::API::Call: parameter 1 had a buffer overflow at C:/Perl64/site/lib/Win32/MSI/HighLevel.pm line 376. Here's the excerpt from HighLevel.pm ($Win32::MSI::HighLevel::VERSION = '1.0008';) I have: [cid:image002.png@01CE2490.C6F07120] It took me some time to understand what happened, and only when I used Microsoft's ORCA to open the MSI, I saw that it doesn't support mapped network drives. When I changed my code to open the file locally (copied it over for testing) it opened fine. I suggest to add it as a caveat in the CPAN site (http://search.cpan.org/~grandpa/Win32-MSI-HighLevel-1.0008/lib/Win32/MSI/HighLevel.pm) to make sure other people don't waste time like me. Thanks, Eitan.
Download image002.png
image/png 12.7k
image002.png
Subject: Re: [rt.cpan.org #84047] Can't open a MSI file from a mapped network drive
Date: Fri, 22 Mar 2013 00:12:26 +1300
To: <bug-Win32-MSI-HighLevel [...] rt.cpan.org>
From: "Peter Jaquiery" <peter.jaquiery [...] ihug.co.nz>
Hi Eitan, thank you for the report and the great detective work. I'll follow up over the next few days as time permits. I have a number of minor fixes pending in any case so this should be the kick I need to get an update out. Cheers, Peter Show quoted text
----- Original Message ----- From: "Schichmanter, Eitan via RT" <bug-Win32-MSI-HighLevel@rt.cpan.org> To: <undisclosed-recipients:> Sent: Tuesday, March 19, 2013 10:00 PM Subject: [rt.cpan.org #84047] Can't open a MSI file from a mapped network drive
> Tue Mar 19 05:00:25 2013: Request 84047 was acted upon. > Transaction: Ticket created by eitan.schichmanter@hp.com > Queue: Win32-MSI-HighLevel > Subject: Can't open a MSI file from a mapped network drive > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: eitan.schichmanter@hp.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84047 > > > > Hello, > > I was developing some information gathering script in Perl for a Windows > build and started using Win32::MSI::HighLevel. > My artifacts folder was on a mapped network drive > (\\server\folder<file:///\\server\folder> ==> P:) so I was trying to use > the following code: > > $fN = 'P:\path_to_file\file.msi'; > my $msi = Win32::MSI::HighLevel->new(-file => $fN); > > When running I received the following run-time error: > > Win32::API::Call: parameter 1 had a buffer overflow at > C:/Perl64/site/lib/Win32/MSI/HighLevel.pm line 376. > > Here's the excerpt from HighLevel.pm ($Win32::MSI::HighLevel::VERSION = > '1.0008';) I have: > [cid:image002.png@01CE2490.C6F07120] > It took me some time to understand what happened, and only when I used > Microsoft's ORCA to open the MSI, I saw that it doesn't support mapped > network drives. > When I changed my code to open the file locally (copied it over for > testing) it opened fine. > > I suggest to add it as a caveat in the CPAN site > (http://search.cpan.org/~grandpa/Win32-MSI-HighLevel-1.0008/lib/Win32/MSI/HighLevel.pm) > to make sure other people don't waste time like me. > > Thanks, > > Eitan. > >
Subject: RE: [rt.cpan.org #84047] Can't open a MSI file from a mapped network drive
Date: Thu, 21 Mar 2013 12:27:06 +0000
To: "bug-Win32-MSI-HighLevel [...] rt.cpan.org" <bug-Win32-MSI-HighLevel [...] rt.cpan.org>
From: "Schichmanter, Eitan" <eitan.schichmanter [...] hp.com>
Thanks a lot. Cheers, Eitan. Show quoted text
-----Original Message----- From: peter.jaquiery@ihug.co.nz via RT [mailto:bug-Win32-MSI-HighLevel@rt.cpan.org] Sent: Thursday, March 21, 2013 1:13 PM To: Schichmanter, Eitan Subject: Re: [rt.cpan.org #84047] Can't open a MSI file from a mapped network drive <URL: https://rt.cpan.org/Ticket/Display.html?id=84047 > Hi Eitan, thank you for the report and the great detective work. I'll follow up over the next few days as time permits. I have a number of minor fixes pending in any case so this should be the kick I need to get an update out. Cheers, Peter
----- Original Message ----- From: "Schichmanter, Eitan via RT" <bug-Win32-MSI-HighLevel@rt.cpan.org> To: <undisclosed-recipients:> Sent: Tuesday, March 19, 2013 10:00 PM Subject: [rt.cpan.org #84047] Can't open a MSI file from a mapped network drive
> Tue Mar 19 05:00:25 2013: Request 84047 was acted upon. > Transaction: Ticket created by eitan.schichmanter@hp.com > Queue: Win32-MSI-HighLevel > Subject: Can't open a MSI file from a mapped network drive > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: eitan.schichmanter@hp.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84047 > > > > Hello, > > I was developing some information gathering script in Perl for a > Windows build and started using Win32::MSI::HighLevel. > My artifacts folder was on a mapped network drive > (\\server\folder<file:///\\server\folder> ==> P:) so I was trying to > use the following code: > > $fN = 'P:\path_to_file\file.msi'; > my $msi = Win32::MSI::HighLevel->new(-file => $fN); > > When running I received the following run-time error: > > Win32::API::Call: parameter 1 had a buffer overflow at > C:/Perl64/site/lib/Win32/MSI/HighLevel.pm line 376. > > Here's the excerpt from HighLevel.pm ($Win32::MSI::HighLevel::VERSION > = > '1.0008';) I have: > [cid:image002.png@01CE2490.C6F07120] > It took me some time to understand what happened, and only when I used > Microsoft's ORCA to open the MSI, I saw that it doesn't support mapped > network drives. > When I changed my code to open the file locally (copied it over for > testing) it opened fine. > > I suggest to add it as a caveat in the CPAN site > (http://search.cpan.org/~grandpa/Win32-MSI-HighLevel-1.0008/lib/Win32/ > MSI/HighLevel.pm) to make sure other people don't waste time like me. > > Thanks, > > Eitan. > >
Subject: [rt.cpan.org #84047]
Date: Tue, 30 Apr 2013 09:54:29 +0000
To: "bug-Win32-MSI-HighLevel [...] rt.cpan.org" <bug-Win32-MSI-HighLevel [...] rt.cpan.org>
From: "Schichmanter, Eitan" <eitan.schichmanter [...] hp.com>
I've spent some time debugging this issue further. It seems not to stem from my original assumption of issues with a mapped network drive but from some other, more elusive root cause. My script is rather complex and uses File::Find. In this scenario, it seems there's some race condition that for some reason fails to open the file. I'll keep testing it in a later stage, trying to recreate the exact scenario that causes the failure. Thanks for your help! Eitan.
Closed as not reproducible.