Edgewall Software
Modify

Opened 18 years ago

Last modified 3 years ago

#5390 assigned defect

Zip Archive: aliases, symlinks

Reported by: anonymous Owned by: Jun Omae
Priority: normal Milestone: next-major-releases
Component: version control/browser Version: 0.10.3
Severity: normal Keywords: zip symlink
Cc: Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Downloading source from the Trac Browsers "Zip Archive" generates Mac aliases or symlinks as files instead of links.

Attachments (0)

Change History (8)

comment:1 by anonymous, 18 years ago

not sure if this helps any but here's a link to a link to a solution to symlinks using zipfile.

http://mail.python.org/pipermail/python-list/2005-June/328433.html

It's off of the Python mailing list

comment:2 by Remy Blank, 16 years ago

Milestone: 0.13
Owner: changed from Christian Boos to Remy Blank

Correct, Trac doesn't handle symlinks in zip archives.

comment:3 by izzysoft@…, 15 years ago

This ticket now is already 3 years old. Will there be worked on? I nkow that ZIP cannot handle symlinks, but there still could be something done:

  • create .tar.gz files as an alternative to .zip
  • ommit the symlinks, and instead add some shell script to create them (this requires a reserved file name for the shell script)
  • simply ommit the symlinks

To chose the required action, some option in trac.ini could be used. The current behavior may cause problems in special cases, when e.g. the symlink en to the directory en_US gets converted into a file, and the program expects it to be a directory.

comment:4 by Thijs Triemstra, 14 years ago

Cc: Thijs Triemstra added
Keywords: zip added

in reply to:  1 comment:5 by Thijs Triemstra, 13 years ago

Replying to anonymous:

not sure if this helps any but here's a link to a link to a solution to symlinks using zipfile.

http://mail.python.org/pipermail/python-list/2005-June/328433.html

It's off of the Python mailing list

Looks like that should be http://mail.python.org/pipermail/python-list/2005-June/936407.html..

comment:6 by Thijs Triemstra, 13 years ago

I think this ticket is blocked by #4788.

comment:7 by Remy Blank, 13 years ago

Owner: Remy Blank removed

Refocusing.

comment:8 by Jun Omae, 3 years ago

Keywords: symlink added
Owner: set to Jun Omae
Status: newassigned

Trac handles symlink and executable in only Subversion repository, since Trac 1.0.2 [11745] (#8919). However, symlink and executable in Git and Mercurial repository are not handled.

I consider we could add islink and isexecutable methods to Node class and implement the methods in each repository.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Jun Omae.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.