Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Bug#535577: debian-policy: what to do with user-generated ..

 
   Linux (Home) -> Bugs Dist RSS
Next:  Bug#535558: allow to skip do_chmod call on incomi..  
Author Message
Bas Zoetekouw

External


Since: Jan 06, 2005
Posts: 275



(Msg. 1) Posted: Fri Jul 03, 2009 2:10 pm
Post subject: Bug#535577: debian-policy: what to do with user-generated data (databases) on purge
Archived from groups: linux>debian>bugs>dist, others (more info?)

Package: debian-policy
Version: 3.8.2.0
Severity: wishlist

Currently, policy is rather unclear on what to do with user-generated
content, such as the content of databases, on purge. Afaics, the only
cases that are mentioned are those of conffiles and log files (both of
which are to be removed at purge).

I would argue that databses and such should NOT be removed on purge
without asking the user explicitly

The immediate cause of me filing this bug, was the apt-get upgrade I
just did, which upgraded postgres-8.3 to postgres-8.4 on my system.
However, postgres apparently doesn't automatically migrate the user
data to the next version, but still postgress-8.3 was marked as
candidate for autoremoval. When I autoremoved the packages (with
--purge), I did't notice postgres-8.3 in the list, an I certainly
didn't expect it to eat my databases without asking me first.
Sure, I should have paid more attention, but I still think that we
shoudl try to protect users like me from themselves liek this, and at
least _ask_ before removing databases (and other data).

Please let me know what you think,
Bas.


-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-rc3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-Cool
Shell: /bin/sh linked to /bin/dash

debian-policy depends on no packages.

debian-policy recommends no packages.

Versions of packages debian-policy suggests:
ii doc-base 0.9.3 utilities to manage online documen

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
Manoj Srivastava

External


Since: Nov 24, 2004
Posts: 1017



(Msg. 2) Posted: Sat Jul 04, 2009 12:25 pm
Post subject: Bug#535577: debian-policy: what to do with user-generated data (databases) on purge [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, Jul 03 2009, Bas Zoetekouw wrote:

> Currently, policy is rather unclear on what to do with user-generated
> content, such as the content of databases, on purge. Afaics, the only
> cases that are mentioned are those of conffiles and log files (both of
> which are to be removed at purge).

> I would argue that databses and such should NOT be removed on purge
> without asking the user explicitly

I would agree that the data owner or custodian should be making
this decision, not the vendor.

> The immediate cause of me filing this bug, was the apt-get upgrade I
> just did, which upgraded postgres-8.3 to postgres-8.4 on my system.
> However, postgres apparently doesn't automatically migrate the user
> data to the next version, but still postgress-8.3 was marked as
> candidate for autoremoval. When I autoremoved the packages (with
> --purge), I did't notice postgres-8.3 in the list, an I certainly
> didn't expect it to eat my databases without asking me first.
> Sure, I should have paid more attention, but I still think that we
> shoudl try to protect users like me from themselves liek this, and at
> least _ask_ before removing databases (and other data).

I think this is a valid case for the use of debconf (after
testing to see it is still available) in the postinst.

While the actions seems fairly clear in this case, I think the
reason we have not standardized a policy rule for the general case is
that it is not so clear what is to be done with user dat, say, in case
of a game high scores file. In that case, it is not unreasonable to
purge the high scores along with the package.

So, by leaving it out of policy, we were leaving it to a case by
case determination by individual developers, hoping that the developer
would be best suited for determining the best course of action for the
data used by their package.

Having said that, it would probably be a good idea t codify that
sentiment in policy (take a hard look at the potential impact of
purging data created by your package, and ask the system
owner/custodian [in lieu of the data owner/custodian] what should be
done about the data if the potential impact could be major), and say
that only "inconsequential" data should be purged without asking. Yes,
that is ambiguous, but we may treat developers as having the judgment
to best resolve the ambiguity for their case, no?

manoj
--
"Sometimes insanity is the only alternative" button at a Science Fiction
convention.
Manoj Srivastava <srivasta.TakeThisOut@debian.org> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Bill Allombert

External


Since: Jan 09, 2006
Posts: 39



(Msg. 3) Posted: Sat Jul 04, 2009 1:25 pm
Post subject: Bug#535577: debian-policy: what to do with user-generated data (databases) on purge [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, Jul 03, 2009 at 01:51:53PM +0200, Bas Zoetekouw wrote:
> Package: debian-policy
> Version: 3.8.2.0
> Severity: wishlist
>
> Currently, policy is rather unclear on what to do with user-generated
> content, such as the content of databases, on purge. Afaics, the only
> cases that are mentioned are those of conffiles and log files (both of
> which are to be removed at purge).
>
> I would argue that databses and such should NOT be removed on purge
> without asking the user explicitly
>
> The immediate cause of me filing this bug, was the apt-get upgrade I
> just did, which upgraded postgres-8.3 to postgres-8.4 on my system.
> However, postgres apparently doesn't automatically migrate the user
> data to the next version, but still postgress-8.3 was marked as

Well, there is the secondary isseu that packages should manage their
upgrade gracefully.

> candidate for autoremoval. When I autoremoved the packages (with
> --purge), I did't notice postgres-8.3 in the list, an I certainly
> didn't expect it to eat my databases without asking me first.
> Sure, I should have paid more attention, but I still think that we
> shoudl try to protect users like me from themselves liek this, and at
> least _ask_ before removing databases (and other data).

I tend to agree with you, but I think there is a more fundamental issue:
user-generated content should not be stored in /var and should not created
and removed by maintainer scripts. (In other word, clearly separated from
automatically generated data like MTA queue, etc).

Cheers,
--
Bill. <ballombe.RemoveThis@debian.org>

Imagine a large red swirl here.



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Russ Allbery

External


Since: Nov 17, 2005
Posts: 831



(Msg. 4) Posted: Sat Jul 04, 2009 6:25 pm
Post subject: Bug#535577: debian-policy: what to do with user-generated data (databases) on purge [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bill Allombert <Bill.Allombert.RemoveThis@math.u-bordeaux1.fr> writes:

> I tend to agree with you, but I think there is a more fundamental
> issue: user-generated content should not be stored in /var and should
> not created and removed by maintainer scripts. (In other word, clearly
> separated from automatically generated data like MTA queue, etc).

This creates a different problem, namely that now you have to ask the
user to create a space for that data to be stored and configure the
package to put it there, which increases the complexity of the package
setup. I'm not sure that's a good tradeoff.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Russ Allbery

External


Since: Nov 17, 2005
Posts: 831



(Msg. 5) Posted: Sat Jul 04, 2009 8:25 pm
Post subject: Bug#535577: debian-policy: what to do with user-generated data (databases) on purge [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jonathan Yu <jonathan.i.yu.DeleteThis@gmail.com> writes:
> On Sat, Jul 4, 2009 at 5:08 PM, Russ Allbery<rra.DeleteThis@debian.org> wrote:
>> Bill Allombert <Bill.Allombert.DeleteThis@math.u-bordeaux1.fr> writes:

>>> I tend to agree with you, but I think there is a more fundamental
>>> issue:  user-generated content should not be stored in /var and
>>> should not created and removed by maintainer scripts. (In other
>>> word, clearly separated from automatically generated data like MTA
>>> queue, etc).

>> This creates a different problem, namely that now you have to ask the
>> user to create a space for that data to be stored and configure the
>> package to put it there, which increases the complexity of the
>> package setup.  I'm not sure that's a good tradeoff.

> Is it too much to ask to have a debconf-like thing pop up and say
> "Hey, I notice you've got postgres-8.3 data, shall we migrate it to
> 8.4 for you?"

I think we'd all agree that this is the best solution to this specific
problem.

> Or on removal, something like "Removing this package will remove your
> data in blahblah. Are you sure you want to continue?" or better yet
> "Do you want to remove the data in blahblah? [Yes] [No]" -- so you
> could uninstall the package while retaining your own data.

This is what some packages currently do and is what Manoj was referring
to, I think. Personally, I consider this best practice.

> I would say that nothing even in /var should be removed without the
> user's consent. Maybe something like a checklist that's like:
> [X] Remove log filles
> [ ] Remove database files
>
> etc. There are such things during the uninstallation of most programs
> on Windows, so why not Debian?

Policy currently requires that log files be removed on purge and if one
doesn't want the log files removed, don't purge the package. I'd rather
not go the route of adding more prompting when we have a clear policy
already in that area that works reasonably well.

However, that aside, there are other places where this comes up.
Removing users added at package installation is another great example.
But I'm not sure that prompting is the best solution to the problem.

Prompting is to some extent a cop-out that we should avoid using if
there's any good choice or any other way that we can proceed reasonably
without bothering the user. But purging user-generated databases seems
like a good case where we really don't have any idea what to do and
there are common cases where both possible decisions are the right move.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
Jonathan Yu

External


Since: Jul 05, 2009
Posts: 6



(Msg. 6) Posted: Sat Jul 04, 2009 8:25 pm
Post subject: Bug#535577: debian-policy: what to do with user-generated data (databases) on purge [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, Jul 4, 2009 at 5:08 PM, Russ Allbery<rra DeleteThis @debian.org> wrote:
> Bill Allombert <Bill.Allombert DeleteThis @math.u-bordeaux1.fr> writes:
>
>> I tend to agree with you, but I think there is a more fundamental
>> issue:  user-generated content should not be stored in /var and should
>> not created and removed by maintainer scripts. (In other word, clearly
>> separated from automatically generated data like MTA queue, etc).
>
> This creates a different problem, namely that now you have to ask the
> user to create a space for that data to be stored and configure the
> package to put it there, which increases the complexity of the package
> setup.  I'm not sure that's a good tradeoff.
Is it too much to ask to have a debconf-like thing pop up and say
"Hey, I notice you've got postgres-8.3 data, shall we migrate it to
8.4 for you?"

Or on removal, something like "Removing this package will remove your
data in blahblah. Are you sure you want to continue?" or better yet
"Do you want to remove the data in blahblah? [Yes] [No]" -- so you
could uninstall the package while retaining your own data.

I would say that nothing even in /var should be removed without the
user's consent. Maybe something like a checklist that's like:
[X] Remove log filles
[ ] Remove database files

etc. There are such things during the uninstallation of most programs
on Windows, so why not Debian?
>
> --
> Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-policy-REQUEST DeleteThis @lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian..org
>
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Bug#343488: aptitude: Segmentation fault in pkgSimulate::P.. - Package: aptitude Version: 0.4.1-1 Severity: normal $ aptitude changelog -t err aptitude Unable to find an archive "err" for the package "aptitude" Segmentation fault $ gdb [snip] (gdb) bt #0 0x081226a8 in pkgSimulate::Policy::~Pol...

Bug#332658: selinux-policy-default: Makefile fails to make.. - Package: selinux-policy-default Version: 1:1.26-3 Severity: grave Justification: renders package unusable Kernel is the latest and greatest from Torvalds' archives, unpatched, pristine. No Debian kernel works. policyvers reports 15 (?) so pushed..

Bug#334007: irda-utils: manpages are not generated during .. - Package: irda-utils Version: 0.9.16-10 Severity: normal Hi, the man directory of the source contains gzip compressed manpages. If an sgml file is changes here, the corresponding manpage file will not be re-generated. The manpages should be removed and....

Bug#333118: gcc-4.0: Segfaulting code generated for gtkboa.. - Package: gcc-4.0 Version: 4.0.1-2 Severity: normal gcc seems to generate incorrect code for gtkboard-0.11pre0. Seems to occur with many combinations of flags under -O or greater (as well as without any) and seems to be independent of optimization level....

Bug#333119: gcc-4.0: Segfaulting code generated for gtkboa.. - Package: gcc-4.0 Version: 4.0.1-2 Severity: serious gcc seems to generate incorrect code for gtkboard-0.11pre0. Seems to occur with many combinations of flags under -O or greater (as well as without any) and seems to be independent of optimization level...
       Linux (Home) -> Bugs Dist All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact