Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc cannot vfs-open some jars from maven #3842

Closed
mc-butler opened this issue Jul 21, 2017 · 1 comment
Closed

mc cannot vfs-open some jars from maven #3842

mc-butler opened this issue Jul 21, 2017 · 1 comment
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3842
Reporter marcolinux (marklinuxbr@….com)
--------- ticket  report
- mc cannot vfs-open some jars from maven
- Ticket 2735 did not  solve it: #2735


---- What steps will reproduce the problem?

$ wget central.maven.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar

$ unzip -l jsr250-api-1.0.jar 
Archive:  jsr250-api-1.0.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2006-04-27 10:31   META-INF/
      106  2006-04-27 10:31   META-INF/MANIFEST.MF
        0  2006-04-27 10:31   javax/
        0  2006-04-27 10:31   javax/annotation/
        0  2006-04-27 10:31   javax/annotation/security/
      678  2006-04-27 10:31   javax/annotation/Generated.class
      436  2006-04-27 10:31   javax/annotation/PostConstruct.class
      430  2006-04-27 10:31   javax/annotation/PreDestroy.class
     1179  2006-04-27 10:31   javax/annotation/Resource$AuthenticationType.class
      903  2006-04-27 10:31   javax/annotation/Resource.class
      467  2006-04-27 10:31   javax/annotation/Resources.class
      473  2006-04-27 10:31   javax/annotation/security/DeclareRoles.class
      433  2006-04-27 10:31   javax/annotation/security/DenyAll.class
      449  2006-04-27 10:31   javax/annotation/security/PermitAll.class
      487  2006-04-27 10:31   javax/annotation/security/RolesAllowed.class
      458  2006-04-27 10:31   javax/annotation/security/RunAs.class
---------                     -------
     6499                     16 files

$ mc 
Press "Enter" on file jsr250-api-1.0.jar


---- What is the expected output?
VFS panel (contents of jar as folder).

---- What do you see instead? 
Nothing happens

---- OBS
As commented in ticket 2735, this is probably due to broken Maven Archive plugin, 
but it is unlikely they will fix all those "broken" jars, since they
work ok with java and some jars can be even signed (redhat/jboss I think).
And mc is a -very handy- tool for working with those jars :-).
That's why I'm making this ticket.



---- system 
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

$ uname -a
Linux samsara 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


---- install mc 
(from git, but the bug is present with default ubuntu mc4.8.15 package too)
$ date -I
2017-07-21

$ git clone --depth=1 https://github.com/MidnightCommander/mc.git
$ cd mc 
$ ./autogen.sh && ./configure.sh && make && make install

$ 
---- output of mc -V 

$ LC_MESSAGES=C /usr/local/bin/mc  -V 
GNU Midnight Commander eab2556
Built with GLib 2.48.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

$ LC_MESSAGES=C /usr/local/bin/mc  -F
Home directory: /home/marco
Profile root directory: /home/marco

[System data]
    Config directory: /usr/local/etc/mc/
    Data directory:   /usr/local/share/mc/
    File extension handlers: /usr/local/libexec/mc/ext.d/
    VFS plugins and scripts: /usr/local/libexec/mc/
	extfs.d:        /usr/local/libexec/mc/extfs.d/
	fish:           /usr/local/libexec/mc/fish/

[User data]
    Config directory: /home/marco/.config/mc/
    Data directory:   /home/marco/.local/share/mc/
	skins:          /home/marco/.local/share/mc/skins/
	extfs.d:        /home/marco/.local/share/mc/extfs.d/
	fish:           /home/marco/.local/share/mc/fish/
	mcedit macros:  /home/marco/.local/share/mc/mc.macros
	mcedit external macros: /home/marco/.local/share/mc/mcedit/macros.d/macro.*
    Cache directory:  /home/marco/.cache/mc/


$ /usr/local/bin/mc --configure-options
(nothing, empty)
$ 
------------ticket END
@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jul 21, 2017 at 18:13 UTC (comment 1)

  • Status changed from new to closed
  • Resolution set to duplicate
  • Milestone Future Releases deleted

Closed as duplicate of #2735.
What reason for this new ticket if #2735 is open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress
Development

No branches or pull requests

1 participant