Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.7
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      Extract .tar.gz and launch unpack.rb inside of it.

      arturas@zeus:~/work/jruby$ rvm 1.6.6,1.6.7,jruby-head-n16,1.9.3 do ruby unpack.rb 
      
      1.6.6
      1.9.2
      Unpacking archive: Plant02.tar.gz
      metadata.yml
      0014.png
      0013.png
      0012.png
      0011.png
      0010.png
      0009.png
      0008.png
      0007.png
      0006.png
      0005.png
      0004.png
      0003.png
      0002.png
      0001.png
      0000.png
      
      1.6.7
      1.9.2
      Unpacking archive: Plant02.tar.gz
      metadata.yml
      0014.png
      0013.png
      0012.png
      0011.png
      0010.png
      0009.png
      0008.png
      0007.png
      0006.png
      0005.png
      0004.png
      0003.png
      0002.png
      0001.png
      0000.png
      Zlib::GzipFile::Error: not in gzip format
         rewind at /home/arturas/.rvm/gems/jruby-1.6.7/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:602
           each at /home/arturas/.rvm/gems/jruby-1.6.7/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:687
        extract at unpack.rb:13
           open at /home/arturas/.rvm/gems/jruby-1.6.7/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:661
           open at /home/arturas/.rvm/gems/jruby-1.6.7/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:848
        extract at unpack.rb:12
         (root) at unpack.rb:32
      
      1.6.7
      1.9.2
      Unpacking archive: Plant02.tar.gz
      metadata.yml
      0014.png
      0013.png
      0012.png
      0011.png
      0010.png
      0009.png
      0008.png
      0007.png
      0006.png
      0005.png
      0004.png
      0003.png
      0002.png
      0001.png
      0000.png
      Zlib::GzipFile::Error: not in gzip format
         rewind at /home/arturas/.rvm/gems/jruby-head-n16/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:602
           each at /home/arturas/.rvm/gems/jruby-head-n16/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:687
        extract at unpack.rb:13
           open at /home/arturas/.rvm/gems/jruby-head-n16/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:661
           open at /home/arturas/.rvm/gems/jruby-head-n16/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:848
        extract at unpack.rb:12
         (root) at unpack.rb:32
      
      non-jruby
      1.9.3
      Unpacking archive: Plant02.tar.gz
      metadata.yml
      0014.png
      0013.png
      0012.png
      0011.png
      0010.png
      0009.png
      0008.png
      0007.png
      0006.png
      0005.png
      0004.png
      0003.png
      0002.png
      0001.png
      0000.png
      

        Activity

        Hide
        Arturas Slajus added a comment -

        Oh, and it fails in 1.8 mode too.

        Show
        Arturas Slajus added a comment - Oh, and it fails in 1.8 mode too.
        Hide
        Arturas Slajus added a comment -

        1.7 too.

        arturas@zeus:~/work/jruby/unpack_bug$ rvm use jruby-head
        Using /home/arturas/.rvm/gems/jruby-head
        arturas@zeus:~/work/jruby/unpack_bug$ ruby unpack.rb 
        
        1.7.0.dev
        1.9.3
        Unpacking archive: Plant02.tar.gz
        metadata.yml
        0014.png
        0013.png
        0012.png
        0011.png
        0010.png
        0009.png
        0008.png
        0007.png
        0006.png
        0005.png
        0004.png
        0003.png
        0002.png
        0001.png
        0000.png
        Zlib::GzipFile::Error: not in gzip format
           rewind at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:602
             each at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:687
          extract at unpack.rb:13
             open at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:661
             open at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:848
          extract at unpack.rb:12
           (root) at unpack.rb:32
        arturas@zeus:~/work/jruby/unpack_bug$ ruby -v
        jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-03-23 3938c82) (Java HotSpot(TM) Server VM 1.7.0) [linux-i386-java]
        
        Show
        Arturas Slajus added a comment - 1.7 too. arturas@zeus:~/work/jruby/unpack_bug$ rvm use jruby-head Using /home/arturas/.rvm/gems/jruby-head arturas@zeus:~/work/jruby/unpack_bug$ ruby unpack.rb 1.7.0.dev 1.9.3 Unpacking archive: Plant02.tar.gz metadata.yml 0014.png 0013.png 0012.png 0011.png 0010.png 0009.png 0008.png 0007.png 0006.png 0005.png 0004.png 0003.png 0002.png 0001.png 0000.png Zlib::GzipFile::Error: not in gzip format rewind at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:602 each at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:687 extract at unpack.rb:13 open at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:661 open at /home/arturas/.rvm/gems/jruby-head/gems/minitar-0.5.3/lib/archive/tar/minitar.rb:848 extract at unpack.rb:12 (root) at unpack.rb:32 arturas@zeus:~/work/jruby/unpack_bug$ ruby -v jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-03-23 3938c82) (Java HotSpot(TM) Server VM 1.7.0) [linux-i386-java]
        Hide
        Thomas E Enebo added a comment -

        Fixed on master 539f45c and backported to jruby-1_6 for fun and profit 08cf4a4

        Show
        Thomas E Enebo added a comment - Fixed on master 539f45c and backported to jruby-1_6 for fun and profit 08cf4a4

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Arturas Slajus
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: