public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Protecting config files of webapps
@ 2014-04-02 20:18 Thomas Kahle
  2014-04-03 14:11 ` [gentoo-dev] " Duncan
  2014-04-04 13:34 ` [gentoo-dev] " Matthew Summers
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Kahle @ 2014-04-02 20:18 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi,

www-apps/tt-rss is configured through a file config.php sitting
in its install directory.  At the moment the file is overwritten
when upgrading with webapp-config.  Who is responsible for
config-protecting this file?

a) the ebuild should install an env file (www-apps/otrs does this)
b) the user can be informed with einfo but needs to do it herself
c) This is a bug in webapp-config

c) seems strange to me, but a user has reported this in bug
496788 and it was closed as a duplicate implying c).

Cheers,
Thomas


-- 
Thomas Kahle
http://dev.gentoo.org/~tomka/


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 601 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-dev] Re: Protecting config files of webapps
  2014-04-02 20:18 [gentoo-dev] Protecting config files of webapps Thomas Kahle
@ 2014-04-03 14:11 ` Duncan
  2014-04-04 13:34 ` [gentoo-dev] " Matthew Summers
  1 sibling, 0 replies; 4+ messages in thread
From: Duncan @ 2014-04-03 14:11 UTC (permalink / raw
  To: gentoo-dev

Thomas Kahle posted on Wed, 02 Apr 2014 22:18:52 +0200 as excerpted:

> www-apps/tt-rss is configured through a file config.php sitting in its
> install directory.  At the moment the file is overwritten when upgrading
> with webapp-config.  Who is responsible for config-protecting this file?
> 
> a) the ebuild should install an env file (www-apps/otrs does this)
> b) the user can be informed with einfo but needs to do it herself c)
> This is a bug in webapp-config
> 
> c) seems strange to me, but a user has reported this in bug 496788 and
> it was closed as a duplicate implying c).

I know nothing of webapp-config, but closing as a dup doesn't normally 
imply what you're trying to make it imply here.

Closed/dup does NOT indicate anything in particular about the validity of 
the multi-reported "thing", except that it's multi-reported.  It's up to 
whoever gets assigned the multi-reported "thing" as to how to resolve it, 
or even what that "thing" might be, bug, invalid/BEBKAC[1], bug in some 
other product, whatever.  That's it.

---
[1] BEBKAC: Variant of PEBKAC, problem exists between keyboard and chair, 
a somewhat snide way of saying it's the reporter themself with buggy 
logic.  Also see ID-10T error, layer-8 issue, wetware bug, faulty 
steering actuator...

http://en.wikipedia.org/wiki/PEBKAC

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] Protecting config files of webapps
  2014-04-02 20:18 [gentoo-dev] Protecting config files of webapps Thomas Kahle
  2014-04-03 14:11 ` [gentoo-dev] " Duncan
@ 2014-04-04 13:34 ` Matthew Summers
  2014-04-04 18:15   ` Thomas Kahle
  1 sibling, 1 reply; 4+ messages in thread
From: Matthew Summers @ 2014-04-04 13:34 UTC (permalink / raw
  To: gentoo-dev; +Cc: Anthony G. Basile, tomka

On Wed, Apr 2, 2014 at 3:18 PM, Thomas Kahle <tomka@gentoo.org> wrote:
> Hi,
>
> www-apps/tt-rss is configured through a file config.php sitting
> in its install directory.  At the moment the file is overwritten
> when upgrading with webapp-config.  Who is responsible for
> config-protecting this file?
>
> a) the ebuild should install an env file (www-apps/otrs does this)
> b) the user can be informed with einfo but needs to do it herself
> c) This is a bug in webapp-config
>
> c) seems strange to me, but a user has reported this in bug
> 496788 and it was closed as a duplicate implying c).
>
> Cheers,
> Thomas
>
>
> --
> Thomas Kahle
> http://dev.gentoo.org/~tomka/
>

It depends. webapp-config is designed to keep a pristine copy in
/usr/share/webapps/$PN/$PV/ so when you write "its install directory"
I'm not sure which one you mean. Is it that one in /usr/share OR is it
the directory, likely withinin /var/www/, that the cli invocation of
webapp-config placed it's files? If the latter, then it's a bug.
webapp-config is supposed to keep track of modified files across
multiple installations of the same webapp, even differing versions of
the same webapp. If it's not doing that, its a bug in webapp-config.

I'm adding blueness@g.o to CC since he is working on this package some.

Thanks,
Matt


Matthew Summers
Gentoo Foundation Inc.
GPG: 111B C438 35FA EDB5 B5D3 736F 45EE 5DC0 0878 9D46


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] Protecting config files of webapps
  2014-04-04 13:34 ` [gentoo-dev] " Matthew Summers
@ 2014-04-04 18:15   ` Thomas Kahle
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Kahle @ 2014-04-04 18:15 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]

On 04/04/14 15:34, Matthew Summers wrote:
> On Wed, Apr 2, 2014 at 3:18 PM, Thomas Kahle <tomka@gentoo.org> wrote:
>> Hi,
>>
>> www-apps/tt-rss is configured through a file config.php sitting
>> in its install directory.  At the moment the file is overwritten
>> when upgrading with webapp-config.  Who is responsible for
>> config-protecting this file?
>>
>> a) the ebuild should install an env file (www-apps/otrs does this)
>> b) the user can be informed with einfo but needs to do it herself
>> c) This is a bug in webapp-config
>>
>> c) seems strange to me, but a user has reported this in bug
>> 496788 and it was closed as a duplicate implying c).
>>
> 
> It depends. webapp-config is designed to keep a pristine copy in
> /usr/share/webapps/$PN/$PV/ so when you write "its install directory"
> I'm not sure which one you mean. Is it that one in /usr/share OR is it
> the directory, likely withinin /var/www/, that the cli invocation of
> webapp-config placed it's files? 

I did not know about the pristine copy in /usr/share, that's
quite useful indeed.  My analysis of the situation at the moment:

The ebuild tries to use the config protect functionality of
webapp-config as per eclass manpage.  It has:

webapp_configfile ${MY_HTDOCSDIR}/config.php

This failed somehow.  When upgrading my site install,
/var/www/../config.php was overwritten by the pristine version.
I don't know if this bug is different from
https://bugs.gentoo.org/show_bug.cgi?id=493520
At least the patch in that bug seems to only work around the
problem, introducing a user configurable config protect variable.

> If the latter, then it's a bug.  webapp-config is supposed to
> keep track of modified files across multiple installations of
> the same webapp, even differing versions of the same webapp. If
> it's not doing that, its a bug in webapp-config.

Yes.

Cheers,
Thomas


-- 
Thomas Kahle
http://dev.gentoo.org/~tomka/




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 601 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-04 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02 20:18 [gentoo-dev] Protecting config files of webapps Thomas Kahle
2014-04-03 14:11 ` [gentoo-dev] " Duncan
2014-04-04 13:34 ` [gentoo-dev] " Matthew Summers
2014-04-04 18:15   ` Thomas Kahle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox