Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227993 - www-apps/moinmoin-1.6.3: webapp-config breaks multiple instances on one vhost
Summary: www-apps/moinmoin-1.6.3: webapp-config breaks multiple instances on one vhost
Status: RESOLVED DUPLICATE of bug 550188
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor with 1 vote (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard: Pending removal: 2018-12-04
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2008-06-18 07:39 UTC by Martin Baute
Modified: 2018-12-04 12:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Baute 2008-06-18 07:39:34 UTC
When set up using webapp-config, www-apps/moinmoin-1.6.3 creates files in two directories. HTML, JavaScript, XML, PHP and other contents end up in the /var/www/<vhost>/htdocs subdir, as specified by the -d option for webapp-config. (As expected.)

But the configuration and data files always end up in /var/www/<vhost>/moinmoin-1.6.3.

This is fine as long as there is only one instance of moinmoin per vhost. But once you set up another instance (by calling webapp-config with a different -d option), the second instance gets its own htdocs subdir - but overwrites the data and config files of the first instance (unless hindered by config file protection, which results in a flood of ._cfg0000* files).

Suggested fix:

When installed with option "-d XYZ", use XYZ as a subdirectory not only in htdocs, but in moinmoin-1.6.3 too, so multiple instances don't collide.

Reproducible: Always
Comment 1 Gunnar Wrobel (RETIRED) gentoo-dev 2008-08-01 17:17:45 UTC
(In reply to comment #0)
> When set up using webapp-config, www-apps/moinmoin-1.6.3 creates files in two
> directories. HTML, JavaScript, XML, PHP and other contents end up in the
> /var/www/<vhost>/htdocs subdir, as specified by the -d option for
> webapp-config. (As expected.)
> 
> But the configuration and data files always end up in
> /var/www/<vhost>/moinmoin-1.6.3.
> 
> This is fine as long as there is only one instance of moinmoin per vhost. But
> once you set up another instance (by calling webapp-config with a different -d
> option), the second instance gets its own htdocs subdir - but overwrites the
> data and config files of the first instance (unless hindered by config file
> protection, which results in a flood of ._cfg0000* files).


Yup, problem acknowledged.

> 
> Suggested fix:
> 
> When installed with option "-d XYZ", use XYZ as a subdirectory not only in
> htdocs, but in moinmoin-1.6.3 too, so multiple instances don't collide.

webapp-config is unable to do such a thing and it is in fact not what we want to do with hostroot files. So I think the only valid solution would be to store the data stuff within htdocs, too. Somewhere in a directory that should get protected via .htaccess.

I'm not yet convinced that this is a good solution either because I believe the data should not necessarily be stored within htdocs. There might be some security problem. I'd have to study the moinmoin installation instructions somewhat closer.

Other suggestions welcome.

> 
> Reproducible: Always
> 

Comment 2 Anthony Basile gentoo-dev 2011-12-30 16:00:10 UTC
I'm trying to pick up where the last maintainer left off.  Is this still a problem in 1.50.16-r4?
Comment 3 Martin Baute 2011-12-30 16:28:47 UTC
Cannot tell, really, as I am no longer using Gentoo on any of my machines. Sorry. But unless there have been appropriate changes to webapp-config, I don't see how this could have "gone away".
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2013-03-14 00:30:06 UTC
(In reply to comment #2)
> I'm trying to pick up where the last maintainer left off.  Is this still a
> problem in 1.50.16-r4?

This is still a problem, even running against portage HEAD.
Comment 5 Anthony Basile gentoo-dev 2013-08-03 15:34:21 UTC
(In reply to Devan Franchini from comment #4)
> (In reply to comment #2)
> > I'm trying to pick up where the last maintainer left off.  Is this still a
> > problem in 1.50.16-r4?
> 
> This is still a problem, even running against portage HEAD.

any fixes here?
Comment 6 Devan Franchini (RETIRED) gentoo-dev 2014-11-29 23:35:26 UTC
I think the question is: can we change a dir name like that without modifying the webapp (see, code) itself or will it cause breakage if we change the name of the dir the webapp expects to find its configuration/data files?
Comment 7 Martin Baute 2018-12-04 12:42:11 UTC
Wow. From IN_PROGRESS to RESOLVED / WONTFIX without so much as a statement?
Comment 8 Virgil Dupras (RETIRED) gentoo-dev 2018-12-04 12:51:09 UTC

*** This bug has been marked as a duplicate of bug 550188 ***