FBSVCMGR produces "Missing arg #1 - possibly status vector overflow" when its 
command includes >= 5 switches and all of them aren't allowed for 
non-privileged user
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CORE-5066
                 URL: http://tracker.firebirdsql.org/browse/CORE-5066
             Project: Firebird Core
          Issue Type: Bug
          Components: SVCMGR
    Affects Versions: 3.0 RC1
            Reporter: Pavel Zotov


intro:
===
create user foo password 'bar';
commit;
===

Then:

fbsvcmgr localhost/3333:service_mgr user foo password bar info_user_dbpath  
info_get_env   info_get_env_lock   info_get_env_msg  info_svr_db_info

Output:

Service isc_info_svc_user_dbpath requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service <Missing arg #1 - possibly status vector overflow> requires SYSDBA 
permissions.  Reattach to the Service Manager using the SYSDBA account.

(note that we have five "info_" switches and all of them are unavail. for 
non-privileged user 'foo'; fifth row in output is broken).

Let's play with number of args:

1) remove 'info_user_dbpath' (i.e. 1st switch) from source command:

fbsvcmgr localhost/3333:service_mgr user foo password bar info_get_env   
info_get_env_lock   info_get_env_msg  info_svr_db_info

Output:

Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_svr_db_info requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.

2) remove 'info_svr_db_info' (i.e. last switch) from source command:

fbsvcmgr localhost/3333:service_mgr user foo password bar info_user_dbpath  
info_get_env   info_get_env_lock   info_get_env_msg

Output:

Service isc_info_svc_user_dbpath requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.

3) change places but not total number of switches: move 

    fbsvcmgr localhost/3333:service_mgr user foo password bar info_user_dbpath  
info_get_env info_svr_db_info info_get_env_lock info_get_env_msg
-- compare with origin:
-- fbsvcmgr localhost/3333:service_mgr user foo password bar info_user_dbpath  
info_get_env   info_get_env_lock   info_get_env_msg  info_svr_db_info

Output:

Service isc_info_svc_user_dbpath requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_svr_db_info requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service isc_info_svc_get_env requires SYSDBA permissions.  Reattach to the 
Service Manager using the SYSDBA account.
-Service <Missing arg #1 - possibly status vector overflow> requires SYSDBA 
permissions.  Reattach to the Service Manager using the SYSDBA account.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to