Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23979

Array to string conversion error with existing Mantis project

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • mantis-plugin
    • None

      The verify button in the the system configuration works fine until i create a new mantis project.

      Then the connection fails with the error:

      Failed to connect http://sgdv01427/mantis/ (cause: Error Type: SYSTEM NOTICE,Error Description: Array to string conversion).
      

      PHP logfile:

      [25-Jul-2014 10:18:03 Europe/Paris] [mantisconnect.php] Error Type: SYSTEM NOTICE,
      Error Description: Array to string conversion
      Stack Trace:
      nusoap.php L5763 serializeType(<string>'return', <string>'http://futureware.biz/mantisconnect:ProjectDataArray', <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> {  } } }, <string>'encoded', <boolean>false)
      nusoap.php L4133 serializeRPCParameters(<string>'mc_projects_get_user_accessible', <string>'output', <Array> { [0] => <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> {  } } } })
      nusoap.php L3721 serialize_return()
      mantisconnect.php L114 service(<string>'<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
        <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
         <username xsi:type="xsd:string">adm.g52614</username>
         <password xsi:type="xsd:string">Jenkins</password>
        </ns1:mc_projects_get_user_accessible>
       </soapenv:Body>
      </soapenv:Envelope>')
      

          [JENKINS-23979] Array to string conversion error with existing Mantis project

          Andreas Wacker created issue -

          Alexandru Gheorghe added a comment - - edited

          Imho you should strip away things like "password".

          Can you please provide some steps to reproduce this?

          Alexandru Gheorghe added a comment - - edited Imho you should strip away things like "password". Can you please provide some steps to reproduce this?
          Alexandru Gheorghe made changes -
          Description Original: The verify button in the the system configuration works fine until i create a new mantis project.

          Then the connection fails with the error:
          Failed to connect http://sgdv01427/mantis/ (cause: Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion).

          PHP logfile:
          [25-Jul-2014 10:18:03 Europe/Paris] [mantisconnect.php] Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion
          Stack Trace:
          nusoap.php L5763 serializeType(<string>'return', <string>'http://futureware.biz/mantisconnect:ProjectDataArray&#39;, <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } }, <string>'encoded', <boolean>false)
          nusoap.php L4133 serializeRPCParameters(<string>'mc_projects_get_user_accessible', <string>'output', <Array> { [0] => <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } } })
          nusoap.php L3721 serialize_return()
          mantisconnect.php L114 service(<string>'<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <soapenv:Body>
            <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
             <username xsi:type="xsd:string">adm.g52614</username>
             <password xsi:type="xsd:string">Jenkins</password>
            </ns1:mc_projects_get_user_accessible>
           </soapenv:Body>
          </soapenv:Envelope>')

          New: The verify button in the the system configuration works fine until i create a new mantis project.

          Then the connection fails with the error:
          {noformat}
          Failed to connect http://sgdv01427/mantis/ (cause: Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion).
          {noformat}

          PHP logfile:
          {noformat}
          [25-Jul-2014 10:18:03 Europe/Paris] [mantisconnect.php] Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion
          Stack Trace:
          nusoap.php L5763 serializeType(<string>'return', <string>'http://futureware.biz/mantisconnect:ProjectDataArray&#39;, <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } }, <string>'encoded', <boolean>false)
          nusoap.php L4133 serializeRPCParameters(<string>'mc_projects_get_user_accessible', <string>'output', <Array> { [0] => <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } } })
          nusoap.php L3721 serialize_return()
          mantisconnect.php L114 service(<string>'<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <soapenv:Body>
            <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
             <username xsi:type="xsd:string">adm.g52614</username>
             <password xsi:type="xsd:string">Jenkins</password>
            </ns1:mc_projects_get_user_accessible>
           </soapenv:Body>
          </soapenv:Envelope>')
          {noformat}
          Alexandru Gheorghe made changes -
          Description Original: The verify button in the the system configuration works fine until i create a new mantis project.

          Then the connection fails with the error:
          {noformat}
          Failed to connect http://sgdv01427/mantis/ (cause: Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion).
          {noformat}

          PHP logfile:
          {noformat}
          [25-Jul-2014 10:18:03 Europe/Paris] [mantisconnect.php] Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion
          Stack Trace:
          nusoap.php L5763 serializeType(<string>'return', <string>'http://futureware.biz/mantisconnect:ProjectDataArray&#39;, <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } }, <string>'encoded', <boolean>false)
          nusoap.php L4133 serializeRPCParameters(<string>'mc_projects_get_user_accessible', <string>'output', <Array> { [0] => <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } } })
          nusoap.php L3721 serialize_return()
          mantisconnect.php L114 service(<string>'<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <soapenv:Body>
            <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
             <username xsi:type="xsd:string">adm.g52614</username>
             <password xsi:type="xsd:string">Jenkins</password>
            </ns1:mc_projects_get_user_accessible>
           </soapenv:Body>
          </soapenv:Envelope>')
          {noformat}
          New: The verify button in the the system configuration works fine until i create a new mantis project.

          Then the connection fails with the error:
          {noformat}
          Failed to connect http://sgdv01427/mantis/ (cause: Error Type: SYSTEM NOTICE,Error Description: Array to string conversion).
          {noformat}

          PHP logfile:
          {noformat}
          [25-Jul-2014 10:18:03 Europe/Paris] [mantisconnect.php] Error Type: SYSTEM NOTICE,
          Error Description: Array to string conversion
          Stack Trace:
          nusoap.php L5763 serializeType(<string>'return', <string>'http://futureware.biz/mantisconnect:ProjectDataArray&#39;, <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } }, <string>'encoded', <boolean>false)
          nusoap.php L4133 serializeRPCParameters(<string>'mc_projects_get_user_accessible', <string>'output', <Array> { [0] => <Array> { [0] => <Array> { ['id'] => 4, ['name'] => 'Jenkins', ['status'] => <Array> { ['id'] => '30', ['name'] => 'release' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '50', ['name'] => 'private' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => '', ['subprojects'] => <Array> { } } } })
          nusoap.php L3721 serialize_return()
          mantisconnect.php L114 service(<string>'<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <soapenv:Body>
            <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
             <username xsi:type="xsd:string">adm.g52614</username>
             <password xsi:type="xsd:string">Jenkins</password>
            </ns1:mc_projects_get_user_accessible>
           </soapenv:Body>
          </soapenv:Envelope>')
          {noformat}

          Sorry, I forgot to publish that a re-install and re-configuration of mantis fixed the problem.

          Andreas Wacker added a comment - Sorry, I forgot to publish that a re-install and re-configuration of mantis fixed the problem.
          Andreas Wacker made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156849 ] New: JNJira + In-Review [ 207896 ]

            Unassigned Unassigned
            pubartos Andreas Wacker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: