Forum OpenACS Q&A: Unsubscribe error

Collapse
Posted by Daniël Mantione on
Hello,

I found the message below in my log files; it is caused by a user that wanted to unsubscribe.

Any idea what is going on? Is it a configuration error on my side or a bug?

Daniël

[30/Dec/2005:14:42:16][12196.245765][-conn:openacs::7] Error: GET http://community.freepascal.org:10000/pvt/unsubscribe-2?
referred by "http://community.freepascal.org:10000/pvt/unsubscribe";
You do not have permission to add members to the group 'The Public'
while executing
"error "You do not have permission to add members to the group '$group(group_name)'""
(procedure "group::add_member" line 15)
invoked from within
"group::add_member -group_id [acs_magic_object the_public] -user_id $rel_user_id "
("deleted" arm line 5)
invoked from within
"switch -exact $state {
"approved" { db_exec_plsql approve {} }
"banned" { db_exec_plsql ban {} }
"reje..."
("uplevel" body line 18)
invoked from within
"uplevel 1 $transaction_code "
(procedure "db_transaction" line 1)
invoked from within
"db_transaction {

# We need the id of the user that we are changing state for
set rel_user_id [db_string select_rel_user_id { ..."
(procedure "membership_rel::change_state" line 3)
invoked from within
"membership_rel::change_state -rel_id $rel_id -state $state"
(procedure "change_state" line 9)
invoked from within
"change_state -user_id $user_id -state "deleted""
(procedure "acs_user::delete" line 4)
invoked from within
"acs_user::delete -user_id [ad_conn user_id]"
("uplevel" body line 15)
invoked from within
"uplevel {
ad_page_contract {
Unsubscribes from the site

@cvs-id $Id: unsubscribe-2.tcl,v 1.2 2003/09/19 15:00:44 lars Exp $
} {} -prop..."
(procedure "code::tcl::/opt/aolserver/openacs/packages/acs-subsite/www/p..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

Collapse
2: Re: Unsubscribe error (response to 1)
Posted by Dave Bauer on
It looks like this is a bug. It is trying to add the user to the group "The Public" but the user does not have admin privilege over that group.

I think there was a similar bug that was fixed not long ago.

Collapse
3: Re: Unsubscribe error (response to 1)
Posted by Dave Bauer on
Here is the change

http://cvs.openacs.org/cvs/openacs-4/packages/acs-tcl/tcl/membership-rel-procs.tcl?r1=1.6.2.1&r2=1.6.2.2

It is in OpenACS 5.2 which has been delayed, but hopefully will be released very soon. Its a one line change you could make in your install.

Collapse
4: Re: Unsubscribe error (response to 1)
Posted by Daniël Mantione on
Thanks, applied it to my installation.