Ticket #1244 (closed defect: fixed)

Opened 5 days ago

Last modified 4 days ago

Use of uninitialized value in concatenation - in file engine/ispcp-htuser-mngr

Reported by: anonymous Assigned to:
Priority: major Milestone: ispCP ω 1.0.0 - RC5
Component: Backend (Engine) Version: ispCP ω 1.0.0 - RC4
Severity: Don't know Keywords:
Cc:

Description

If you run ispcp-htuser-mngr it complains about an uninitialised value in concatenation:

Use of uninitialized value in concatenation (.) or string at ./ispcp-htuser-mngr line 896.

I donno what's wrong in this file, is this maybe a parser error?

Testes with latest trunk.

Attachments

Change History

05/12/2008 06:33:04 PM changed by rats

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from Working to ispCP ω 1.0.0 - RC5.

hopefully fixed in r1148

05/12/2008 06:51:02 PM changed by anonymous

  • status changed from closed to reopened.
  • resolution deleted.

The bug only moved from line 896 to 870:

Use of uninitialized value in concatenation (.) or string at ./ispcp-htuser-mngr line 870.

Tested with r1148.

05/12/2008 06:53:55 PM changed by anonymous

The problematic code:

        $sql = <<SQL_QUERY;
                select
                        t1.dmn_id,
                        t2.domain_name,
                        t1.user_id,
                        t1.auth_type,
                        t1.auth_name,
                        t1.path,
                        t1.status,
                        t2.domain_uid,
                        t2.domain_gid
                from
                        htaccess as t1,
                        domain as t2
                where
                        t1.id = $main::htuser_task_id
                and
                        t1.user_id != 0
                and
                        t1.dmn_id = t2.domain_id
SQL_QUERY

Maybe this bug has something to do with the variable $main::htuser_task_id.

05/12/2008 07:43:44 PM changed by rats

  • status changed from reopened to closed.
  • resolution set to fixed.

another try in r1150 - cannot test atm.

05/12/2008 07:51:58 PM changed by anonymous

r1149 raises the following errros:

Use of uninitialized value in concatenation (.) or string at ./ispcp-htuser-mngr line 900.
Use of uninitialized value in concatenation (.) or string at ./ispcp-htuser-mngr line 932.
Use of uninitialized value in concatenation (.) or string at ./ispcp-htuser-mngr line 1146.
Can't use string ("") as an ARRAY ref while "strict refs" in use at ./ispcp-htuser-mngr line 1150.

I'll test the upcoming 1150 as soon as it is available.

05/12/2008 08:49:39 PM changed by anonymous

  • status changed from closed to reopened.
  • resolution deleted.

Is there a r1150? I'll reopen this bug, cause r1149 has it.

05/12/2008 11:32:54 PM changed by rats

  • status changed from reopened to closed.
  • resolution set to fixed.

on bug is fixed now in r1150; you cannot start ispcp-htuser-mngr w/o input value

perl ispcp-htuser-mngr 11

will work.

05/12/2008 11:33:34 PM changed by rats

Here my output:

perl ispcp-htuser-mngr 2
DEBUG: push_el() sub_name: htuser_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: htuser_mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: htuser_mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: htuser_mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: htuser_mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: htuser_mngr_shut_down(), msg: Ending...

Add/Change #1244 (Use of uninitialized value in concatenation - in file engine/ispcp-htuser-mngr)




Action