Closed Bug 242049 Opened 20 years ago Closed 20 years ago

Installed .jar has permission -r-------- if the .xpi is created with jar

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 189905

People

(Reporter: mozbugbox, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a) Gecko/20040426
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a) Gecko/20040426

When create a xpi with jar (fastjar, actually), the .jar file installed has the
permission of -r--------. As a result, reinstall the same package always cause a
-215 error: read only file. No such problem with .xpi created with zip.

It's because jar does not reserve the attributes of packed files(?) Since
although it is stated that jar is simply a zip file but still, developers tend
to creat it with the most likely tool, i.e. jar, instead of zip. At least I am
and I saw another users in #mozilla has the same -215 error on reinstall.

When unpacking a .xpi file, the permission should be set to umask instead of
just -r--------.


Reproducible: Always
Steps to Reproduce:
1. install a jar packed .xpi extension.
2. install once.
3. install again.

Actual Results:  
error -215. read only.

Expected Results:  
reinstalled ok.
This is really a bug in fastjar... a linux tool that doesn't handle linux
permissions is kinda silly.  Anyway, if the XPI engine is going to handle this,
it won't be any different than for another bug, so marking this as a dupe.

*** This bug has been marked as a duplicate of 189905 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.