jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Plexus Components
  • PLXCOMP-199

Wrong default directory attribute in archives

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: plexus-archiver-1.2
  • Fix Version/s: plexus-archiver-2.2
  • Component/s: plexus-archiver
  • Labels:
    • attribute
    • default
    • directory
    • zip
  • Environment:
    Linux
  • Patch Submitted:
    Yes

Description

This is easy to fix.

When creating a ZIP with plexus-archiver, normally directories are added with a wrong attribute.
Listing such a ZIP file with "zipinfo" or "unzip -Z" in the command line shows directories as having the attribute "?" instead of "d". Such files cannot be opened with Midnight Commander or Krusader.

This behavior is there since plexus-archiver 1.0-alpha-12; version 1.0-alpha-10 didn't have it.

I've attached a patch which I have tested with the actual trunk version 1.3-SNAPSHOT and it works. Also the unit tests finish successfully.

This can be tested with maven-assembly-plugin:2.2-beta-5 for example, which depends on plexus-archiver 1.0-alpha-12.
maven-assembly-plugin:2.2-beta-2 in turn uses plexus-archiver 1.0-alpha-10 and doesn't show this behaviour.

I would have commited the fix into SVN myself if I had an account...

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    Fix_directory_attribute_issue_introduced_in_plexus-archiver_1_0-alpha-12.patch
    10/Feb/12 8:33 AM
    0.6 kB
    Rolf Schuster

Issue Links

is depended upon by

Bug - A problem which impairs or prevents the functions of the product. MASSEMBLY-422 Generated directories have wrong file attributes

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Kristian Rosenvold added a comment - 12/Feb/12 2:35 PM

Fixed in a159f8355f957966e011b523a1698ee17900c7fc, thanks for the patch !

Note that plexus archiver is now at https://github.com/sonatype/plexus-archiver

I will try to redeploy the site to get the url's updated

Show
Kristian Rosenvold added a comment - 12/Feb/12 2:35 PM Fixed in a159f8355f957966e011b523a1698ee17900c7fc, thanks for the patch ! Note that plexus archiver is now at https://github.com/sonatype/plexus-archiver I will try to redeploy the site to get the url's updated

People

  • Assignee:
    Kristian Rosenvold
    Reporter:
    Rolf Schuster
Vote (0)
Watch (1)

Dates

  • Created:
    10/Feb/12 8:33 AM
    Updated:
    17/Feb/12 12:48 PM
    Resolved:
    12/Feb/12 2:35 PM

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
1h
Remaining Estimate - 1 hour
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.