Skip Menu |

This queue is for tickets about the PDF-API2-Simple CPAN distribution.

Report information
The Basics
Id: 58106
Status: new
Priority: 0/
Queue: PDF-API2-Simple

People
Owner: Nobody in particular
Requestors: chris.nighswonger [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.1.4u
Fixed in: (no value)



Subject: PDF::API2::Simple does not close the output file
OS: XP Pro SP3 Perl: Strawberry 5.12.0.1 The save method ends thus: $self->{'_pdf'}->saveas( $self->file ); whereas it should (I think) have another line like this: $self->{'_pdf'}->close_file; On *nix platforms this does not seem to cause a problem, however, on Win32 a subsequent attempt to unlink the file will result in a failure of "Permission Denied." It turns out that Windows realizes the file was never closed and thus denies permission (which is probably the sane thing to do in the case that the file was really still open).
Subject: Re: [rt.cpan.org #58106] AutoReply: PDF::API2::Simple does not close the output file
Date: Fri, 18 Jun 2010 17:34:54 -0400
To: bug-PDF-API2-Simple [...] rt.cpan.org
From: Christopher Nighswonger <chris.nighswonger [...] gmail.com>
Any update on the status of this bug? On Thu, Jun 3, 2010 at 10:57 PM, Bugs in PDF-API2-Simple via RT <bug-PDF-API2-Simple@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: >        "PDF::API2::Simple does not close the output file", > a summary of which appears below. > > There is no need to reply to this message right now.  Your ticket has been > assigned an ID of [rt.cpan.org #58106].  Your ticket is accessible > on the web at: > >    https://rt.cpan.org/Ticket/Display.html?id=58106 > > Please include the string: > >         [rt.cpan.org #58106] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > >                        Thank you, >                        bug-PDF-API2-Simple@rt.cpan.org > > ------------------------------------------------------------------------- > OS: XP Pro SP3 > Perl: Strawberry 5.12.0.1 > > The save method ends thus: > > $self->{'_pdf'}->saveas( $self->file ); > > whereas it should (I think) have another line like this: > > $self->{'_pdf'}->close_file; > > On *nix platforms this does not seem to cause a problem, however, on > Win32 a subsequent attempt to unlink the file will result in a failure > of "Permission Denied." It turns out that Windows realizes the file was > never closed and thus denies permission (which is probably the sane > thing to do in the case that the file was really still open). >