Bug 675543 - Bad file permissions for about.jnlp
Summary: Bad file permissions for about.jnlp
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.6.0-openjdk
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: jiri vanek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-06 13:00 UTC by Ville Skyttä
Modified: 2012-08-16 21:27 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 21:27:36 UTC
Type: ---


Attachments (Terms of Use)

Description Ville Skyttä 2011-02-06 13:00:30 UTC
$ javaws -about
netx v0.5 - (C)2001-2003 Jon A. Maxwell (jmaxwell.net)

Launching about window...
netx: Unexpected java.io.IOException: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/about.jnlp (Permission denied) at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:254)

$ ls -l /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/about.jnlp
-rw-r----- 1 root root 607 Feb  1 17:14 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/about.jnlp

I suppose the permissions for this file should be changed to 0644 instead of being 0640.

Comment 1 Omair Majid 2011-02-12 00:54:19 UTC
I can confirm the bug. Upstream has the right permissions: http://icedtea.classpath.org/hg/release/icedtea6-1.9/file/tip/netx/net/sourceforge/jnlp/resources/

Comment 2 jiri vanek 2011-02-17 12:27:39 UTC
yap. wil change them in spec file

Comment 3 Omair Majid 2011-02-17 15:08:26 UTC
(In reply to comment #2)
> yap. wil change them in spec file

That's sounds like a good idea. Thanks. What I dont understand how those permissions changed in the first place. The permissions look fine in the icedtea tarball and the spec file does not touch them at all.

Comment 4 Ville Skyttä 2011-02-17 19:49:15 UTC
Looking at the build log, there are a few commands like this which I suspect could be causing it:

find ... -type f -exec chmod 640 '{}' ';' -o -type d -exec chmod 750 '{}' ';'

http://kojipkgs.fedoraproject.org/packages/java-1.6.0-openjdk/1.6.0.0/53.1.9.6.fc15/data/logs/x86_64/build.log

For example, there's this:

(cd /builddir/build/BUILD/icedtea6-1.9.6/netx.build ; \
 mkdir -p lib ; \
 /builddir/build/BUILD/icedtea6-1.9.6/bootstrap/jdk1.6.0/bin/jar cf lib/classes.jar javax/jnlp net ; \
 cp -pPR -l /builddir/build/BUILD/icedtea6-1.9.6/netx src; \
 find src -type f -exec chmod 640 '{}' ';' -o -type d -exec chmod 750 '{}' ';'; \
 cd src ; \
 /builddir/build/BUILD/icedtea6-1.9.6/bootstrap/jdk1.6.0/bin/jar uf /builddir/build/BUILD/icedtea6-1.9.6/netx.build/lib/classes.jar \
  `find . -type f -not -name '*.java'` ; \
 /usr/bin/zip -qr /builddir/build/BUILD/icedtea6-1.9.6/netx.build/lib/src.zip javax net )

No idea what the reason behind those chmods is, haven't looked deeper.

Comment 5 Andrew John Hughes 2011-02-17 22:21:38 UTC
Unrelated.  That's copying the source code of netx over to create a zip file, src.zip, for the OpenJDK build and it needs to ensure that the copy is writable (the source tree could be read-only).

In all my installs here, about.jnlp has the correct permissions:

$ ll /home/andrew/build/icedtea6-1.7/jre/lib/about.jnlp 
-rw-r--r-- 1 andrew staff 607 Feb 14 12:19 /home/andrew/build/icedtea6-1.7/jre/lib/about.jnlp
$ ll /home/andrew/build/icedtea6-1.8/jre/lib/about.jnlp 
-rw-r--r-- 1 andrew staff 607 Feb 14 15:01 /home/andrew/build/icedtea6-1.8/jre/lib/about.jnlp
$ ll /home/andrew/build/icedtea6-1.9/jre/lib/about.jnlp 
-rw-r--r-- 1 andrew staff 607 Feb 14 16:49 /home/andrew/build/icedtea6-1.9/jre/lib/about.jnlp

So my guess is this is something the RPM spec file is doing, not IcedTea.

Comment 6 jiri vanek 2011-02-23 12:19:28 UTC
it is no pain to add %attr(0644,-,-) %{jredir}/lib/about.jnlp into %files and so be sure.

Comment 7 Fedora End Of Life 2012-08-16 21:27:39 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.