voxpupuli/puppet-archive

Archive corrupt after download from Puppet master

dhs-rec opened this issue · 2 comments

  • Puppet: 4
  • Ruby: As delivered
  • Distribution: MSI
  • Module version: 3.2.1

How to reproduce (e.g Puppet code you use)

archive { 'title':
   path => 'C:/path/to/archive.zip',
   source => 'puppet:///path/to/archive.zip',
   ...
}

What are you seeing

Archive can't be extracted because it's corrupt.

What behaviour did you expect instead

Archive to be extracted.

Output log

Error: Execution of '7z.exe x -aoa "C:/path/to/archive.zip"' returned 2: 7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30
    
    Scanning the drive for archives:
    1 file, 466724764 bytes (446 MiB)
    
    Extracting archive: C:\path\to\archive.zip
    
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = C:\path\to\archive.zip
    Type = zip
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    WARNINGS:
    There are data after the end of archive
    Physical Size = 570
    Tail Size = 466724194
    Characteristics = Local
    
    ERROR: Data Error : standard.ww\config.xml
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Open Errors: 1
    
    Sub items Errors: 1

Any additional information you'd like to impart

Works fine when I split this into file {} -> archive {}.

Same matter for me.

But unfortunately, nobody seems to care...