Projects tigase _server server-core Issues #814
domains-per-user-limit in vhost-man doesn't work (#814)
wojciech.kapcia@tigase.net opened 8 years ago

Despite having

'vhost-man' {
    'domains-per-user-limit' = 100000
}

It results in

<iq to="admin@test-d/def-user-resource" id="aacba" from="vhost-man@test-d" type="result"><command status="completed" node="comp-repo-item-add" xmlns="http://jabber.org/protocol/commands"><x xmlns="jabber:x:data" type="result"><field var="Error" type="fixed"><value>The item did not pass validation checking.</value></field><field var="Note" type="fixed"><value>   </value></field><field var="Warning" type="fixed"><value>Maximum number of domains exceeded for the user! Current number is: 25</value></field></x></command></iq>

Relevant 7.1.0 option

vhost-man/domains-per-user-limit[I]=100000
Andrzej Wójcik (Tigase) commented 8 years ago

I fixed this issue. It was caused by missing alias property in @ConfigField annotation at field of VHostJDBCRepository

wojciech.kapcia@tigase.net commented 8 years ago

Works now!

Prepare:  XEP-0077 - In-Band Registration, register  ... success,  Total: 219ms
VHost 1:  XEP-0199: XMPP Ping to virtual domain 'test-domain' on the server  ... success,  Total: 34ms
VHost 2:  Reloading VHosts from non-admin account, expecting error message  ... success,  Total: 58ms
VHost 3:  Updating VHost from non-admin account, expecting error message  ... success,  Total: 243ms
VHost 4:  Removing VHost from non-admin account, expecting error message  ... success,  Total: 82ms
VHost 5:  Reloading VHosts from admin account...  ... success,  Total: 63ms
VHost 6:  XEP-0199: XMPP Ping to virtual domain 'vhost-1' which is not on the server, expecting error response  ... success,  Total: 51ms
VHost 7:  Adding VHost 'vhost-1' from admin account  ... success,  Total: 142ms
VHost 8:  XEP-0199: XMPP Ping to virtual domain 'vhost-1' on the server  ... success,  Total: 29ms
VHost 9:  Removing VHost 'vhost-1' from admin account  ... success,  Total: 52ms
VHost 10:  XEP-0199: XMPP Ping to virtual domain 'vhost-1' which is not on the server, expecting error response  ... success,  Total: 32ms
VHost 11:  XEP-0199: XMPP Ping 200 non-existen vhosts on the server, expecting error responses  ... success,  Total: 765ms, Average: 3ms, Loop: 200, OK: 200
VHost 12:  Adding 200 virtual hosts from admin account  ... success,  Total: 1709ms, Average: 8ms, Loop: 200, OK: 200
VHost 13:  XEP-0199: XMPP Ping all 200 virtual hosts on the server  ... success,  Total: 234ms, Average: 1ms, Loop: 200, OK: 200
VHost 14:  Reloading all VHosts from admin account...  ... success,  Total: 59ms
VHost 15:  Removing 200 VHosts from admin account  ... success,  Total: 1179ms, Average: 5ms, Loop: 200, OK: 200
VHost 16:  XEP-0199: XMPP Ping 200 non-existen vhosts on the server, expecting error responses  ... success,  Total: 353ms, Average: 1ms, Loop: 200, OK: 200
VHost 17:  Reloading all VHosts from admin account...  ... success,  Total: 31ms
Test finished after: 00:00:06
/tigase-console.log
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
5428
Version
tigase-server-8.0.0
Spent time
3h 45m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#814
Please wait...
Page is in error, reload to recover