#474913 javascript-common overrides /javascript globally

#474913#5
Date:
2008-04-07 21:02:26 UTC
From:
To:
The new /etc/javascript-common/javascript-common.conf with the Alias pathway
for /javascript overrides any virtual hosted development configs having
their own /javascript pathway.

I have a simple solution: Since these are all javascript libraries make
the configuration /javascriptlibs and this eliminates this issue.

I have roughly 10 sites with their own /javascript reference paths. I
just changed the Alias under javascript-common.conf to that
/javascriptlibs

It may be a few more characters but it's a simple solution and
references globally available Javascript Libraries separate from one's
own private javascript files and libraries.

#474913#12
Date:
2008-04-07 22:01:25 UTC
From:
To:
Hi,

  Thanks for the report.

  (I've reassigned this bug to the 'javascript-common' package
 which is the one which actually makes the global /javascript/
 alias.)

  You raise an interesting point here.  The /javascript/ alias
 could indeed be used by people who wish to use the jquery package,
 and if that is the case then there will be breakage.

  There are two possible solutions to this bug:

  1.  Do nothing.  Rely upon the end user (you in this case) to
     remove the global alias, and change it to their own if they
     spot the collision.

  2.  Change the default for the javascript-common.  I'd actually
     suggest we use /javascript-common/ as the alias, rather than
     your suggestion of '/javascriptlibs'.  That matches the package
     name, if not the directory.

  I've no strong preference on the way forward here, but I'd slightly
 lean towards the first option.  I can see that it could cause users
 pain though; so the second would be acceptible.  I just fear that
 whatever "new name" we pick for the alias will be taken by *somebody*.

  So its the lesser of two evils:  Leave as-is, so that people using
 the package already don't get suprised, or change it and still run
 the risk of a collisions - and a new bug report from a different
 user..

Steve

#474913#17
Date:
2008-04-08 02:20:19 UTC
From:
To:
Your solution for javascript-common works for me and maintains
nomenclature.

- Marc

Marc J. Driftmeyer
mjd@reanimality.com
http://www.reanimality.com
(509)435-5212

#474913#22
Date:
2008-10-27 15:04:16 UTC
From:
To:
We have a large number of virtual servers with javascript files rooted
to "/javascript".

The /etc/javascript-common/javascript-common.conf file overrode all of
those configurations when the server was restarted. It took a little
while to work out what the problem was.

I'd like to suggest that such a configuration change should be made more
visible to the person upgrading the system and should provide a choice
about whether or not is should be enabled.

Thanks
Rory

#474913#33
Date:
2010-11-11 09:27:10 UTC
From:
To:
Hi

this bug is open for more than two years I still don't see clarification
why this needs to be done.

I see two major issues with this:

1. The alias is made globally for all (virtual) hosts, what just breaks
   lot of applications silently.

2. The /etc/lighttpd/conf-available/90-javascript-alias.conf symlink is
   unconditionally recreated on each package update.

Given that 1 breaks unrelated software (this is actually how I came into
it) and 2 is violation of policy 10.7.3, I am upgrading this bug to
serious.

#474913#42
Date:
2010-11-28 13:31:05 UTC
From:
To:
clone 474913 -1
retitle 474913 javascript-common overrides /javascript globally in apache2
retitle -1 javascript-common overrides /javascript globally in lighttpd
notfound -1 5
thanks

Excerpt from /usr/share/doc/apache2.2-common/README.Debian.gz:

    If the local administrator is not comfortable with packages
    activating their config files by default, it is possible
    to change the 'Include /etc/apache2/conf.d/' in apache2.conf
    into 'Include /etc/apache2/conf.d.enabled/' and create that
    directory. He can then put symlinks to the files in conf.d
    which he wants to enable into conf.d.enabled.


Given this bug:
 - has a workaround as suggested above
 - is the same as #565738 and #604980
 - could apply to many other packages (nagios, gitweb, doc-central, etc)
 - should probably get fixed in apache itself (#605227)
 - is a release blocker

I suggest its severity should get lowered.

Furthermore, I'm splitting this bug in:
 - javascript-common overrides /javascript globally in apache2
 - javascript-common overrides /javascript globally in lighttpd

The latter only being in javascript-common/8, it doesn't affect squeeze and
therefore shouldn't be listed in squeeze release blockers.

Many thanks !

#474913#55
Date:
2010-11-28 14:38:35 UTC
From:
To:
----- Original message -----

I would also highlight that "fixing" this would in
fact break many other packages that are expecting
the global alias. I don't think it would be a good
idea to change the current behavior, especially so
close to the release!

Thomas Goirand (zigo)

#474913#62
Date:
2011-08-09 08:54:53 UTC
From:
To:
I totally agree with Michal Čihař, and this bug report should have been
issued by (at least) changing /javascript to something less risky before
releasing. I think even /javascript-common is much too common (sic) to think
it'll not break a few websites. A company could use /javascript for its
websites and have a /javascript-common for common javascript on all of its
websites and thus be inconvenienced.

For the record : I've just tried to install rsslounge on an apache server,
and the website was not working *at all*. The diagnosis was a bit tricky,
there was no error in the server logfiles because of the local rewrites by
rsslounge... In fact it was trying to access rsslounge's javascript in
/usr/share/javascript-common/, where obviously the files were not available.

I can see the point of this package, but I find it too intrusive. In fact, I
find global Aliases too intrusive and I think they should never be defined
for a whole server, but always on a per-vhost basis. We rarely need all
aliases to be on all of our vhosts and sometimes it's a (small, I concede)
security inconvenience.

Here's what I suggest :
- use /javascript-common-libs instead of /javascript and propagate the name
change to the dependent packages. The name javascript-common-libs contains
the package name and is not too common
- javascript-common package should behave like phpmyadmin and ask the user -
at install time - which web servers he'd like to automatically configure to
use it

Regards

#474913#67
Date:
2013-08-09 16:45:46 UTC
From:
To:
severity 474913 normal
thanks


The /etc/lighttpd/conf-available/90-javascript-alias.conf symlink
is no more unconditionally recreated on each package update.

So, I'm downgrading severity from 'serious' to 'normal'.


Cheers,

#474913#74
Date:
2013-08-20 10:36:35 UTC
From:
To:
Now that version 11 has hit testing (It only took over 1000 days),
and that javascript-common no longer rewrites the alias on every reconfigure
if the sysop disabled it, I don't see the point to separate apache2 bug from
lighttpd one.

The question is whether it is ok to use /javascript url namespace or not.

The choice of the http deamon is not relevant, imho.