[NEXUS-6536] Replace N and TN security ids with meaningful identifiers

commit 5bb18700ec8cfd8c01531d6df9adfae1b65b5f18
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 22:18:22 2014 +0200

    4 -> settings-update

commit a0debb973e00e0b629d549806da397705a94185d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 22:04:10 2014 +0200

    Update  name/description

commit 6b9a387add3d71c23a1ddec62f3175453bb91751
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 21:48:33 2014 +0200

    Typo

commit c08fc63d5ffde6157df1f34c774f1474250bb96a
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 19:37:20 2014 +0200

    Properly compare privileges as lists

commit 10515c0c8ef0fa250cbf4b8ca702e89fdf60b147
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:38:01 2014 +0200

    19 -> search-checksum

commit bf51b921456d6c65543ad4924e7270dc15d15240
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:35:17 2014 +0200

    44 -> feeds-read

commit c71c00729ad547933e7ed5158ab3fa23421a0365
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:32:35 2014 +0200

    19 -> search-checksum

commit 46afc4764a298aa710aa67d4b8534d10b591658c
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:29:13 2014 +0200

    18 -> reindex

commit cb0914c0bbefd8e4b10949e5d208b96328225bfe
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:26:56 2014 +0200

    17 -> search

commit f6a3362d183caec1b1448ff1d181d7d8220afda8
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:11:21 2014 +0200

    80 -> privilegetypes-read

commit 69e963d5c5335ac3e1f792920f367663a7cccaea
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:09:56 2014 +0200

    75 -> userlocatortypes-read

commit 95a36e348b91ab1e0a2fdd8136a3e1220962d37d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:07:38 2014 +0200

    72 -> userssetpw

commit 624bfebf9d4a26b1e6b069859444c5b52d483613
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:04:52 2014 +0200

    64 -> userschangepw

commit a8c6529b2945a65f9b5911330a7898acb165698c
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 17:01:11 2014 +0200

    59 -> usersresetpw

commit 6354f17be75fe0bc1768c81b2fc6125a7f0b0a89
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:57:50 2014 +0200

    58 -> usersforgotid

commit 79562fd17534e13018d90f36b17f97fbab57809d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:55:29 2014 +0200

    57 -> usersforgotpw

commit 5940161cc2044dc84b9ae7dbb0be2a48d4b72016
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:52:17 2014 +0200

    41 -> users-delete

commit 9621bbbe0afb772dfde99f7c64b8cb161e777299
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:50:33 2014 +0200

    40 -> users-update

commit aaefab909e79b8589bf33e46d637cddca3261c00
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:48:46 2014 +0200

    39 -> users-read

commit d3d436cb906fda66fdc8d18ab5f0316990ef1bd8
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:46:31 2014 +0200

    38 -> users-create

commit f735ed4c4a137d27dd3c1506bc66ff84c82bbf9a
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:44:27 2014 +0200

    38 -> roles-delete

commit e1d9f931460b0a772b7b9ab164da762a153445c5
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:42:48 2014 +0200

    36 -> roles-update

commit e85fcbb8be9118f7a77c8864bc18e4dbd4fd8999
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:40:44 2014 +0200

    35 -> roles-read

commit fd2fd62b6773b06f6fece82845c0d04a35e290d9
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:38:43 2014 +0200

    34 -> roles-create

commit c7bb7eaf0706b4ff6795b648c03208b4765655eb
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:37:24 2014 +0200

    33 -> privileges-delete

commit 2622f8542310c6bf7bd27772ecc56be1c077a0d0
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:35:52 2014 +0200

    32 -> privileges-update

commit e5f791cc6600ec408d9055069e71bc19c1f7981c
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:33:23 2014 +0200

    31 -> privileges-read

commit 631c97032278ae2368c9d018216446937fafb7d5
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:31:19 2014 +0200

    30 -> privileges-create

commit ab754d32775c0291edf2e528ae9d27df14b5d641
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:29:29 2014 +0200

    1001 -> security-admin

commit 0ee6ab95b0419a3213d69a99a60a189f701cc1f1
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:27:37 2014 +0200

    Merge security privileges into core SecurityResource

commit 3c3f0d192a38fe56dc0885950af3092882cf5b89
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:24:56 2014 +0200

    83 -> apikey-access

commit c3be937903ab38feffd72039096c343120032d39
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:22:53 2014 +0200

    82 -> repositorymirrorsstatus-read

commit 056590d203905c808b81441be0628f771a166ffd
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:08:07 2014 +0200

    81 -> repositorypredefinedmirrors-read

commit a4a7e4d009348711ffa32b972513472aec57f133
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:04:29 2014 +0200

    79 -> repositorymirrors-create

commit 437cb2beec79d2c061a5e84b3c0921c74f79591a
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:03:10 2014 +0200

    78 -> repositorymirrors-read

commit 514266045d95466b2859fb7cf7121a7a6400b327
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 16:00:52 2014 +0200

    77 -> logconfig-update

commit 228c26a8f1603b2114a23a875f73127350cad110
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:59:39 2014 +0200

    76 -> maven-metadata-delete

commit 43f8f38223ca1310252639064db1446a565f0bad
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:54:46 2014 +0200

    74 -> repotypes-read

commit 7bf11c59d2405ad92f2993e3d7fc6a80c0e9ac73
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:52:38 2014 +0200

    73 -> realmtypes-read

commit 015dfb21592c23509500d4e4b336cfd03df010a4
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:51:12 2014 +0200

    71 -> scheduletypes-read

commit 56252c7a832ba55a495c103b2590c369d40f312a
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:48:43 2014 +0200

    70 -> contentclasses-read

commit 34dd2f50cd449b45f1c682ef4e2ca4e723a85877
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:25:18 2014 +0200

    69 -> tasktypes-read

commit 3a9820af99ae193673a5ec0371072d9f9456ab3d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:23:54 2014 +0200

    68 -> tasksrun

commit 47397e25026fe0574044e956b17d632305fae732
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:20:23 2014 +0200

    67 -> repometa-read

commit a4837f4ef38a4858fb185ba19daf458b21cfce2b
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:18:43 2014 +0200

    Remove 66 (unused)

commit 8db7ab14940f3ef09fdbb20b9a41b7780accc008
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:16:08 2014 +0200

    65 -> artifact-create

commit 4608b75feaf333b0a1c5f06392d680799dca1b84
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:13:01 2014 +0200

    56 -> repostatus-update

commit 6c820ecd499ffa27ee9c52a8fae3fe8169bbc4e0
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:11:13 2014 +0200

    55 -> repostatus-read

commit 24992ddc8d5e444f5dbcbd9f017199be039f0530
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:08:32 2014 +0200

    54 -> artifact-read

commit bd5461435b1d093816106433c0ef880526f19636
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:04:25 2014 +0200

    51 -> wastebasket-delete

commit 8cbc69bbc0e00eaabc83b60ffaf64119d781b4a5
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:03:06 2014 +0200

    50 -> wastebasket-read

commit 0878a15b8778d456476a4ace82e5e4e7b4cda6ec
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 15:01:13 2014 +0200

    Remove 49 (unused)

commit 7ade23fd3a0ace7148426460c8f61e154d8b4e34
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:57:53 2014 +0200

    48 -> targets-delete

commit ac2fe8816797782b68c2df8aad8d4fec9c0a7c22
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:55:46 2014 +0200

    47 -> targets-update

commit fc6e941d139e855e1a337581d3731e9c3794b987
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:53:36 2014 +0200

    46 -> targets-read

commit b9f63149f68fb10671679da4f72bb9e1df3f2444
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:47:10 2014 +0200

    45 -> targets-create

commit 4acaa5d61a1d9b17fd2dfac26f603995b2ebe207
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:45:32 2014 +0200

    43 -> configuration-read

commit 64ca2b7711afa3fe5c834d77f32e370d8f874b29
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:43:58 2014 +0200

    42 -> logs-read

commit 2499c41df307455df651706f91708b7e9674c99b
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:42:17 2014 +0200

    29 -> tasks-delete

commit a0a04168372fbd5de86aa41b99f8c7800a60dbca
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:40:43 2014 +0200

    28 -> tasks-update

commit 4b986b14842542d76b7185da17f6c1610b7f6aa0
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:39:12 2014 +0200

    27 -> tasks-read

commit f73d550fe614bb9fe59c6d867ce36f92c73f4bf9
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:37:27 2014 +0200

    26 -> tasks-create

commit 8c6b6992fc0847db1cae252f0401a184b290af5d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:27:59 2014 +0200

    25 -> routes-delete

commit 884f003690310696ddfc35fd56908285ee476b33
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:25:55 2014 +0200

    24 -> routes-update

commit 800f02b85a1458e70eab9b5d573c1daf6c902d3a
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:24:01 2014 +0200

    23 -> routes-read

commit c3002f54a6aeb80ae8583844ba40249a7bade7c4
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:22:33 2014 +0200

    22 -> routes-create

commit a438f406974b6046c228075da3ab14cce8f54748
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:21:01 2014 +0200

    21 -> cache-delete

commit 48b23616ad28ce4231cddf86896891e315f11be1
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:19:13 2014 +0200

    20 -> attributes-delete

commit 0bec6a28fd6fa5e8856bbe6628afa82c8c59b6e3
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:16:03 2014 +0200

    16 -> repogroups-delete

commit cacc900a2485a3d16e4c3741949049019bad6121
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:13:50 2014 +0200

    15 -> repogroups-update

commit d817e097a9ff9e888a35353ae383aaff4288d42e
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:10:39 2014 +0200

    14 -> repogroups-read

commit 4e572f7c3226a5931b53a7aaa9dd14093415bc91
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:06:52 2014 +0200

    13 -> repogroups-create

commit f7f6e719b5c32eae49f8b90ec7e6baba76b5747e
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:04:48 2014 +0200

    12 -> repotemplates-delete

commit 38a8370e79421dd0f16744e21ec747bc61ae1e56
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:02:54 2014 +0200

    11 -> repotemplates-update

commit 8ac3d000947206ff8e31c90fbd7083b8dbdb60b4
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 14:00:49 2014 +0200

    10 -> repotemplates-read

commit 99d4b37caeb835085277c9774cbb2dd9bf103acb
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:57:42 2014 +0200

    9 -> repotemplates-create

commit 9a8719806af66324fd6f2443a792a2a50d9e915d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:53:57 2014 +0200

    8 -> repositories-delete

commit 6e66de4be00adfc31c8448fb08a978fb241f5025
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:51:46 2014 +0200

    7 -> repositories-update

commit ac7c8fa41a0d957cf48151205e7f2f382ba6e622
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:47:36 2014 +0200

    6 -> repositories-read

commit 6ae56e9c888f98c7adca899501f55ed72c3f57dd
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:42:40 2014 +0200

    5 -> repositories-create

commit 1f3f38747d752acce28a38bbfd1bc2d1e44e9e58
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:37:13 2014 +0200

    4 -> settings-update

commit e0884c9aa8c9f444931380f06ac625879b634c04
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:32:13 2014 +0200

    3 -> settings-read

commit 2d298050990fcbec65d12c0dc1d13a36bf158b24
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:31:23 2014 +0200

    3 -> settings-read

commit 70c5e76169a26efe903fdc4480b071cc94673bd6
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:24:00 2014 +0200

    Sign-in name/description

commit 3230262e81aef145dbb6e10d23956b09c270ed6c
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Wed Dec 3 13:22:27 2014 +0200

    2 -> signin

commit 11f81cc5ef93f9d9f6111b601bf6bb99ce0562d7
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 23:07:46 2014 +0200

    2 -> login

commit 835b3804f6811f623076b1b0851d1272ab61fa51
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 22:38:12 2014 +0200

    1 -> status

commit 54e4e4eeae559675db7264d203199b774e503f21
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:58:37 2014 +0200

    1000 -> admin

commit 63d2a4749905288396ccc1c5377b68c0fac3537d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:55:53 2014 +0200

    T12 -> repository-any-delete

commit 6873d79b66e7eec64f3e4380930ff27f9a46dc1f
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:54:06 2014 +0200

    T11 -> repository-any-create

commit 0460400e270cd7df4c426ba73c8158f7e344ece2
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:52:53 2014 +0200

    T10 -> repository-any-update

commit 878225e5ea870c4c5d4a2ce3bb4dce17c20419b4
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:50:48 2014 +0200

    T9 -> repository-any-read

commit c7b9e3df37e70d66a37de6ecd412fb7e1cea33cb
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:47:57 2014 +0200

    T8 -> repository-m1-delete

commit cc65ef1031111a3d1dd592b097d297ac5552727d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:46:02 2014 +0200

    T7 -> repository-m2-delete

commit 56cd0c9f076812dabb28fc63e64f0b4674b56c2d
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:43:26 2014 +0200

    T6 -> repository-m1-create

commit beb2a4445212a6b67132f73300a7aec09ddfd073
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:40:21 2014 +0200

    T5 -> repository-m2-create

commit 00d940c3c2483827faa6e328853a286190ff06f6
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:37:47 2014 +0200

    T4 -> repository-m1-update

commit 94d94dfc108ac8e23e19fb0090ac5489bceb5444
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:36:07 2014 +0200

    T3 -> repository-m2-update

commit 2dc76144a01968c53870fd9de56d5a152f318d2e
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:30:23 2014 +0200

    T2 -> repository-m1-read

commit 4b0fab56afa988339bf01315bba0560d64bb10d2
Author: Alin Dreghiciu <adreghiciu@gmail.com>
Date:   Tue Dec 2 21:27:50 2014 +0200

    T1 -> repository-m2-read
NEXUS-7292: Scheduler rework

Dropping legacy in-house brewed scheduler,
replacing it with Quartz.
NEXUS-7292: Sorting out concurrency issues related to task removal

As Quartz gets into problems and detects an internal
error when two threads tries to remove same job. Before
fix it happened in job thread (job listener) but also taskInfo
remove method might be invoked removing same job.
Expose capability ID via QuartzPlugin
Type name should not be mandatory as it is sent by Nexus -> UI not the other way around
Drop unused "message" field
Only hide contraint/configuration violation exceptions
Log (trace) all security model db access
Cache user/role mappings
Tuning H2 under Quartz

Changes:
* it seems it needs MVCC to work properly (see comments  in H2 sql)
* pool size set manually to recommended size, added TODO
* do not use BLOBs to store jobData, we use Strings only
Local testing shows Quartz.unscheduleJob is more reliable than Quartz.deleteJob (fixes the failing UTs, but still diagnosing the exact cause). Note this will also delete the orphaned job because we have a 1:1 mapping between job and trigger.
Enabling acquireTriggersWithinLock fixes some non-fatal NPEs seen in the UT logs where the Quartz thread asynchronously selects a trigger, but before it can access the job details the owning job is deleted. Note that this setting used to be the default in Quartz 1.6.3
Pre-hash default user passwords
Handle concurrent updates while hashing passwords
Fix task scheduling validation
Fix wrong search&replace of nextRun->getNextRun
Fix conversion of Once schedule
Task config handling change

As we use more durable "useProperties" in QZ for simple DB use,
we must enforce no null keys and values are in config. Also,
before task was unaware is being configred, now is.

Finally, some ITs were failing as it seems null=null
mapping is added by XStream to task props always.
Avoid task being removed if schedule is invalid
Added some validation on schedules