osmo-msc/openbsc/src
Holger Hans Peter Freyther 2826df56b2 subscr: Make db_create_subscriber fail on duplicates
The issue of db_create_subscriber updating an already existing subscr
is that the same subscriber will then have two entries in the active
subscribers list. In general this will break assumptions that a subscr
can be compared by comparing the pointer.

In the case of the VTY this was not an issue as the created subscr
was immediately destroyed again but it is better to avoid this problem.

Change the VTY command to find the subscriber and then call sync to
have the updated time set. The side-effect is we will now have two
queries for the subscriber. Once through subscr_get_by_imsi and once
through db_create_subscriber.

Change the db_create_subscriber to fail if a subscriber already exists,
and add a testcase for this behavior and do not updated the 'updated'
timestamp of an already existing subscriber.

Add a testcase for this behavior.

Related: OS Issue #1657
2016-04-06 21:19:53 +02:00
..
gprs 04.08: apply new transaction id inline functions 2016-03-15 14:18:52 +01:00
ipaccess ipaccess_rcvmsg: fix returncode, add partial write warning 2016-02-25 12:18:03 +01:00
libbsc bsc: Add parameter to restart a bts 2016-04-01 19:34:42 +02:00
libcommon gsm_data_shared: compute/sprintf the lchan name only once 2015-12-05 16:19:21 +01:00
libfilter 04.08: apply new bitmask functions, fix bitmask use 2016-03-15 14:15:00 +01:00
libmgcp mgcp: Fix compiler warnings on size_t on AMD64 2016-03-16 11:16:06 +01:00
libmsc subscr: Make db_create_subscriber fail on duplicates 2016-04-06 21:19:53 +02:00
libtrau Fix build wrt. missing CFLAGS constituents 2015-06-19 20:56:53 +02:00
osmo-bsc osmo-bsc: fix compiler warning: store struct in vty->index 2016-03-27 10:48:14 +02:00
osmo-bsc_mgcp enable telnet VTY bind address config for various programs 2016-02-25 12:18:03 +01:00
osmo-bsc_nat 04.08: apply new transaction id inline functions 2016-03-15 14:18:52 +01:00
osmo-nitb smpp: refactor initialization, add bind address 2016-02-25 12:18:04 +01:00
utils meas: Do not retry to close the database 2016-03-15 14:22:57 +01:00
Makefile.am filter: Move the gsm 04.08 filter to a common place 2015-05-03 21:42:27 +02:00