i-doit / api-client-php

Easy-to-use, but feature-rich client library for i-doit's JSON-RPC API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Api funktioniert nicht nach Update auf v1.16.2

tk-2018 opened this issue · comments

Hallo,
nach dem Update auf die aktuelle Pro Version 1.16.2 habe ich wie beschrieben mittels composer die Api wieder installiert. Dabei scheint aber ein Downgrade an einigen Paketen zu erfolgen. Dies hat den Effekt, dass Fehler in I-doit auftreten.

bheisig/idoitapi version 0.10.0
i-doit version 1.16.2
i-doit API add-on version 1.12.1

Hier die Ausgabe von composer:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^0.10.0 for bheisig/idoitapi
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 15 installs, 30 updates, 11 removals

  • Removing symfony/string (v5.1.8)
  • Removing symfony/service-contracts (v2.2.0)
  • Removing symfony/polyfill-php80 (v1.22.0)
  • Removing symfony/polyfill-php73 (v1.22.0)
  • Removing symfony/polyfill-intl-normalizer (v1.22.0)
  • Removing symfony/polyfill-intl-grapheme (v1.22.0)
  • Removing symfony/event-dispatcher-contracts (v2.2.0)
  • Removing symfony/deprecation-contracts (v2.2.0)
  • Removing psr/http-client (1.0.1)
  • Removing psr/event-dispatcher (1.0.0)
  • Removing intervention/image (2.5.1)
  • Downgrading composer/semver (3.2.4 => 1.5.1): Downloading (100%)
  • Downgrading ezyang/htmlpurifier (v4.13.0 => v4.12.0): Downloading (100%)
  • Downgrading guzzlehttp/psr7 (1.7.0 => 1.6.1): Downloading (100%)
  • Downgrading guzzlehttp/promises (1.4.0 => v1.3.1): Downloading (100%)
  • Installing symfony/polyfill-php72 (v1.15.0): Downloading (100%)
  • Downgrading symfony/polyfill-mbstring (v1.22.0 => v1.15.0): Downloading (100%)
  • Installing paragonie/random_compat (v9.99.99): Downloading (100%)
  • Installing symfony/polyfill-php70 (v1.15.0): Downloading (100%)
  • Installing symfony/polyfill-intl-idn (v1.15.0): Downloading (100%)
  • Downgrading guzzlehttp/guzzle (7.2.0 => 6.5.3): Downloading (100%)
  • Downgrading hackzilla/password-generator (1.6.0 => 1.5.0): Downloading (100%)
  • Downgrading league/csv (9.6.2 => 7.2.0): Downloading (100%)
  • Downgrading monolog/monolog (2.2.0 => 1.25.3): Downloading (100%)
  • Downgrading symfony/translation-contracts (v2.3.0 => v1.1.7): Downloading (100%)
  • Downgrading symfony/translation (v4.4.16 => v4.4.7): Downloading (100%)
  • Installing symfony/contracts (v1.1.0): Downloading (100%)
  • Downgrading nesbot/carbon (2.45.0 => 2.32.2): Downloading (100%)
  • Downgrading pagerfanta/pagerfanta (v2.5.1 => v2.1.3): Downloading (100%)
  • Downgrading phpmailer/phpmailer (v6.2.0 => v5.2.28): Downloading (100%)
  • Downgrading phpseclib/phpseclib (2.0.28 => 2.0.27): Downloading (100%)
  • Downgrading simplepie/simplepie (1.5.6 => 1.5.4): Downloading (100%)
  • Downgrading smarty/smarty (v3.1.36 => v3.1.33): Downloading (100%)
  • Downgrading symfony/class-loader (v3.4.46 => v3.4.39): Downloading (100%)
  • Downgrading symfony/polyfill-ctype (v1.22.0 => v1.15.0): Downloading (100%)
  • Downgrading symfony/filesystem (v5.1.8 => v4.4.7): Downloading (100%)
  • Downgrading symfony/config (v5.1.8 => v3.4.39): Downloading (100%)
  • Installing symfony/debug (v4.4.7): Downloading (100%)
  • Downgrading symfony/console (v5.1.8 => v3.4.39): Downloading (100%)
  • Downgrading symfony/dependency-injection (v5.1.8 => v3.4.39): Downloading (100%)
  • Downgrading symfony/event-dispatcher (v5.1.8 => v3.4.39): Downloading (100%)
  • Downgrading symfony/http-foundation (v5.1.8 => v3.4.39): Downloading (100%)
  • Downgrading symfony/polyfill-iconv (v1.22.0 => v1.15.0): Downloading (100%)
  • Downgrading symfony/security-core (v5.1.8 => v4.2.12): Downloading (100%)
  • Installing symfony/polyfill-util (v1.15.0): Downloading (100%)
  • Installing symfony/polyfill-php56 (v1.15.0): Downloading (100%)
  • Downgrading symfony/security-csrf (v5.1.8 => v3.4.39): Downloading (100%)
  • Downgrading symfony/yaml (v5.1.8 => v3.4.39): Downloading (100%)
  • Installing bheisig/idoitapi (0.10): Downloading (100%)
  • Installing patchwork/utf8 (v1.3.2): Downloading (100%)
  • Installing doctrine/inflector (1.3.1): Downloading (100%)
  • Installing anahkiasen/underscore-php (2.0.0): Downloading (100%)
  • Downgrading symfony/process (v5.1.8 => v4.4.7): Downloading (100%)
  • Installing knplabs/knp-snappy (v1.2.1): Downloading (100%)
  • Installing latitude/latitude (0.7.0): Downloading (100%)
  • Installing symfony/options-resolver (v3.4.39): Downloading (100%)
    paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
    symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)
    symfony/contracts suggests installing psr/cache (When using the Cache contracts)
    symfony/contracts suggests installing symfony/cache-contracts-implementation
    symfony/contracts suggests installing symfony/event-dispatcher-implementation
    symfony/contracts suggests installing symfony/http-client-contracts-implementation
    symfony/contracts suggests installing symfony/service-contracts-implementation
    symfony/contracts suggests installing symfony/translation-contracts-implementation
    bheisig/idoitapi suggests installing ext-xdebug (Needed for code coverage with phpunit)
    patchwork/utf8 suggests installing ext-wfio (Use WFIO for UTF-8 filesystem access on Windows)
    patchwork/utf8 suggests installing ext-intl (Use Intl for best performance)
    knplabs/knp-snappy suggests installing h4cc/wkhtmltopdf-amd64 (Provides wkhtmltopdf-amd64 binary for Linux-compatible machines, use version ~0.12 as dependency)
    knplabs/knp-snappy suggests installing h4cc/wkhtmltopdf-i386 (Provides wkhtmltopdf-i386 binary for Linux-compatible machines, use version ~0.12 as dependency)
    knplabs/knp-snappy suggests installing h4cc/wkhtmltoimage-amd64 (Provides wkhtmltoimage-amd64 binary for Linux-compatible machines, use version ~0.12 as dependency)
    knplabs/knp-snappy suggests installing h4cc/wkhtmltoimage-i386 (Provides wkhtmltoimage-i386 binary for Linux-compatible machines, use version ~0.12 as dependency)
    knplabs/knp-snappy suggests installing wemersonjanuario/wkhtmltopdf-windows (Provides wkhtmltopdf executable for Windows, use version ~0.12 as dependency)
    Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
    Package anahkiasen/underscore-php is abandoned, you should avoid using it. No replacement was suggested.
    Writing lock file
    Generating autoload files

Hier der I-doit Fehler z.B. beim Aufruf der console.php:
PHP Fatal error: Uncaught Error: Class 'idoit\Component\ClassLoader\MapClassLoader' not found in /var/www/html/i-doit/src/autoload.inc.php:271
Stack trace:
#0 /var/www/html/i-doit/src/bootstrap.inc.php(36): include_once()
#1 /var/www/html/i-doit/console.php(14): require('/var/www/html/i...')
#2 {main}
thrown in /var/www/html/i-doit/src/autoload.inc.php on line 271

Hey @tk-2018 ich fürchte hier liegt ein Missverständnis vor - bei dieser API Client handelt es sich nicht um das API Add-on für i-doit sondern um einen Client, der mit dem API Add-on kommuniziert.

Dieser Client ist für "standalone" Applikationen gedacht die dann via API auf die CMDB zugreifen möchten.