Commit 059e1b08 authored by David Byers's avatar David Byers

Server:

    Linked aux-items get their creator from the source item.

Testing:
    Test cases updated to reflect this.
parent d9231e13
1999-06-13 David Byers <davby@ida.liu.se>
* src/server/testsuite/lyskomd.0/03.exp: Fix test cases for change
in aux_item_link_items below.
* src/server/testsuite/lyskomd.0/aux-items-cov.exp: Fix test cases
for change in aux_item_link_items below.
* src/server/aux-items.c (aux_item_link_items): Creator of linked
aux item is now the creator of the source item. This gives the
creator of the source item power over the linked item.
1999-06-11 David Byers <davby@ida.liu.se>
* src/server/aux-items.c: Cleared up comment for
undelete_aux_item_list.
1999-06-05 David Byers <davby@ida.liu.se>
* src/server/text-garb.c: Always include setjmp.h
1999-06-05 Per Cederqvist <ceder@lysator.liu.se>
Test lock files.
......
......@@ -3,6 +3,12 @@ server.
* Showstoppers
* High priority, but they can wait until after the next release.
** Features
*** Cross references should create a mirror item.
** Testing
*** No test case for attempting to garbage collect a text that has an
......@@ -127,8 +133,6 @@ server.
Returns secret persons and secret working conferences. No
filtering is done on the result.
* High priority, but they can wait until after the next release.
** modify_conf_info can operate on an rd_protected conf.
Perhaps we should have a flag that says an item can be added only
by members of the conference?
......
/*
* $Id: aux-items.c,v 1.16 1999/06/11 19:50:18 byers Exp $
* $Id: aux-items.c,v 1.17 1999/06/13 15:32:20 byers Exp $
* Copyright (C) 1994-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -742,7 +742,7 @@ aux_item_link_items(Object_type src_type, /* Source object type */
item_list.length = 1;
item_list.items = dst_item_data;
prepare_aux_item_list(&item_list, 0);
prepare_aux_item_list(&item_list, src_item->creator);
/*
......@@ -756,17 +756,20 @@ aux_item_link_items(Object_type src_type, /* Source object type */
{
case TEXT_OBJECT_TYPE:
text_stat_add_aux_item_list((Text_stat *)dst_ptr,
(Text_no)dst_no, &item_list, 0);
(Text_no)dst_no, &item_list,
src_item->creator);
mark_text_as_changed((Text_no)dst_no);
break;
case CONF_OBJECT_TYPE:
conf_stat_add_aux_item_list((Conference *)dst_ptr,
(Conf_no)dst_no, &item_list, 0);
(Conf_no)dst_no, &item_list,
src_item->creator);
mark_conference_as_changed((Conf_no)dst_no);
break;
case INFO_OBJECT_TYPE:
system_add_aux_item_list((Info *)dst_ptr, &item_list, 0);
system_add_aux_item_list((Info *)dst_ptr, &item_list,
src_item->creator);
break;
default:
......
......@@ -1209,7 +1209,7 @@ simple_expect "=1326 12"
# test call 90 (get-text-stat)
send "1327 90 10\n"
# Text 10 should have two extra aux-items since it is the FAQ of conferences 10 and 11.
simple_expect "=1327 $time_10 0 0 17 0 2 { 0 7 6 8 } 3 { 1 1 0 $time_10 00000111 1 [holl "text/plain"] 2 28 0 $any_time 00001000 0 2H10 3 28 0 $any_time 00001000 0 2H11 }"
simple_expect "=1327 $time_10 0 0 17 0 2 { 0 7 6 8 } 3 { 1 1 0 $time_10 00000111 1 [holl "text/plain"] 2 28 8 $any_time 00001000 0 2H10 3 28 8 $any_time 00001000 0 2H11 }"
# setup_xfail "*"
# if {$n_marks == 2} {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment