[GLPI 10] Oauth IMAP Authorization ERR_HTTP2_PROTOCOL_ERROR
Closed this issue · 1 comments
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Version
GLPI 10.0.20
Bug description
When creating a authorization on Oauth IMAP (azure), after inserting the credentials i get the following screen (Blocked parts of the token):
After some further testing, when the url is 1090 or more chars longer I get the error above, but if it is 1089 or lower chars long it just goes back to the application form and displays a popup saying Unable to verify authorization code (expected behavior)
Relevant log output
Page URL
https://support.example.com/marketplace/oauthimap/front/authorization.callback.php?code
Steps To reproduce
1 create an authorization via Oauth IMAP
2 Login via microsoft for token
3 website crash
4 sometimes i have to restart the ISS aplication pool for the site to be up and running again.
Your GLPI setup information
Information about system installation and configuration
GLPI 10.0.20 ( => C:\inetpub\vhosts\example.com\support.example.com\glpi) Installation mode: TARBALL Current language:en_GB
Server
Operating system: Windows NT 10.0 build 20348 (Windows Server 2022) AMD64
PHP 8.3.25 cgi-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl,
date, dom, exif, fileinfo, filter, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre,
pdo_mysql, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, random, readline, session, soap, sockets, sodium, sqlite3, sqlsrv,
standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="60" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M" disable_functions=""
Software: Microsoft-IIS/10.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0
Server Software: mariadb.org binary distribution
Server Version: 10.5.29-MariaDB
Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Parameters: example@localhost:3306/test
Host info: localhost via TCP/IPPHP version (8.3.25) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.
curl extension is installed.
gd extension is installed.
intl extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.5.29) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_cache has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_cron has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_dumps has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_graphs has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_lock has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_pictures has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_plugins has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_rss has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_sessions has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_tmp has been validated.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_uploads has been validated.Web server root directory configuration seems safe.
Sessions configuration is secured.
OS and PHP are relying on 64 bits integers.
exif extension is installed.
ldap extension is not present.
openssl extension is installed.
Following extensions are installed: bz2, Phar, zip.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to C:\inetpub\vhosts\example.com\support.example.com\glpi/marketplace has been validated.
Timezones seems not loaded, see https://glpi-install.readthedocs.io/en/latest/timezones.html.
GLPI constants
GLPI_ROOT: "C:\inetpub\vhosts\example.com\support.example.com\glpi"
GLPI_CONFIG_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/config"
GLPI_VAR_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files"
GLPI_MARKETPLACE_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/marketplace"
GLPI_USE_CSRF_CHECK: "1"
GLPI_CSRF_EXPIRES: "7200"
GLPI_CSRF_MAX_TOKENS: "100"
GLPI_USE_IDOR_CHECK: "1"
GLPI_IDOR_EXPIRES: "7200"
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: false
GLPI_SERVERSIDE_URL_ALLOWLIST: ["^\n (http|https|feed):// # protocol\n (\n (?:\n (?:xn--[a-z0-9-]++\.)*+xn--[a-z0-9-]++ # a domain name using punycode\n |\n (?:[\pL\pN\pS\pM\-\]++\.)+[\pL\pN\pM]++ # a multi-level domain name\n |\n [a-z0-9\-\]++ # a single-level domain name\n )\.?\n | # or\n \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # an IP address\n | # or\n \[\n (?:(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-f]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-f]{1,4})))?::(?:(?:(?:[0-9a-f]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?: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(?:[0-9a-f]{1,4})):){0,5}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,6}(?:(?:[0-9a-f]{1,4})))?::))))\n \] # an IPv6 address\n )\n (?:/ (?:[\pL\pN\pS\pM\-._\!$&'()+,;=:@]|%[0-9A-Fa-f]{2}) )* # a path\n (?:\? (?:[\pL\pN\-._\~!$&'\\+,;=:@/?]|%[0-9A-Fa-f]{2}) )? # a query (optional)\n $~ixuD"]
GLPI_DISALLOWED_UPLOADS_PATTERN: "/\.(php\d*|phar)$/i"
GLPI_TELEMETRY_URI: "https://telemetry.glpi-project.org"
GLPI_INSTALL_MODE: "TARBALL"
GLPI_NETWORK_MAIL: "glpi@teclib.com"
GLPI_NETWORK_SERVICES: "https://services.glpi-network.com"
GLPI_MARKETPLACE_ALLOW_OVERRIDE: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
GLPI_USER_AGENT_EXTRA_COMMENTS: ""
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1"
GLPI_AJAX_DASHBOARD: "1"
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: "0"
GLPI_CENTRAL_WARNINGS: "1"
GLPI_TEXT_MAXSIZE: "4000"
GLPI_DOC_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files"
GLPI_CACHE_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_cache"
GLPI_CRON_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_cron"
GLPI_DUMP_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_dumps"
GLPI_GRAPH_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_graphs"
GLPI_LOCAL_I18N_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_locales"
GLPI_LOCK_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_lock"
GLPI_LOG_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_log"
GLPI_PICTURE_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_plugins"
GLPI_RSS_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_rss"
GLPI_SESSION_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_sessions"
GLPI_TMP_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_tmp"
GLPI_UPLOAD_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_uploads"
GLPI_INVENTORY_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/files/_inventories"
GLPI_NETWORK_REGISTRATION_API_URL: "https://services.glpi-network.com/api/registration/"
GLPI_MARKETPLACE_PLUGINS_API_URI: "https://services.glpi-network.com/api/marketplace/"
GLPI_I18N_DIR: "C:\inetpub\vhosts\example.com\support.example.com\glpi/locales"
GLPI_VERSION: "10.0.20"
GLPI_SCHEMA_VERSION: "10.0.20@d64066799f068b16ee973b377bdd13f984fe062a"
GLPI_MARKETPLACE_PRERELEASES: false
GLPI_MIN_PHP: "7.4.0"
GLPI_MAX_PHP: "8.6.0"
GLPI_YEAR: "2025"
Libraries
htmlawed/htmlawed version 1.2.14 in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\htmlawed\htmlawed)
phpmailer/phpmailer version 6.8.0 in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\phpmailer\phpmailer\src)
simplepie/simplepie version 1.5.8 in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\simplepie\simplepie\library)
tecnickcom/tcpdf version 6.8.0 in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\tecnickcom\tcpdf)
michelf/php-markdown in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\michelf\php-markdown\Michelf)
true/punycode in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\true\punycode\src)
iamcal/lib_autolink in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\iamcal\lib_autolink)
sabre/dav in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\sabre\dav\lib\DAV)
sabre/http in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\sabre\http\lib)
sabre/uri in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\sabre\uri\lib)
sabre/vobject in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\sabre\vobject\lib)
laminas/laminas-i18n in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\laminas\laminas-i18n\src)
laminas/laminas-servicemanager in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\laminas\laminas-servicemanager\src)
monolog/monolog in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\monolog\monolog\src\Monolog)
sebastian/diff in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\sebastian\diff\src)
donatj/phpuseragentparser in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\donatj\phpuseragentparser\src\UserAgent)
elvanto/litemoji in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\elvanto\litemoji\src)
symfony/console in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\symfony\console)
scssphp/scssphp in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\scssphp\scssphp\src)
laminas/laminas-mail in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\laminas\laminas-mail\src\Protocol)
laminas/laminas-mime in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\laminas\laminas-mime\src)
rlanvin/php-rrule in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\rlanvin\php-rrule\src)
ramsey/uuid in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\ramsey\uuid\src)
psr/log in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\psr\log\Psr\Log)
psr/simple-cache in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\psr\simple-cache\src)
psr/cache in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\psr\cache\src)
league/csv in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\league\csv\src)
mexitek/phpcolors in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\mexitek\phpcolors\src\Mexitek\PHPColors)
guzzlehttp/guzzle in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\guzzlehttp\guzzle\src)
guzzlehttp/psr7 in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\guzzlehttp\psr7\src)
glpi-project/inventory_format in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\glpi-project\inventory_format\lib\php)
wapmorgan/unified-archive in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\wapmorgan\unified-archive\src)
paragonie/sodium_compat in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\paragonie\sodium_compat\src)
symfony/cache in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\symfony\cache)
html2text/html2text in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\html2text\html2text\src)
symfony/css-selector in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\symfony\css-selector)
symfony/dom-crawler in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\symfony\dom-crawler)
twig/twig in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\twig\twig\src)
twig/string-extra in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\twig\string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
symfony/polyfill-php81 not found
symfony/polyfill-php82 in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\symfony\polyfill-php82)
league/oauth2-client in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\league\oauth2-client\src\Provider)
league/oauth2-google in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\league\oauth2-google\src\Provider)
thenetworg/oauth2-azure in (C:\inetpub\vhosts\example.com\support.example.com\glpi\vendor\thenetworg\oauth2-azure\src\Provider)
SQL replicas
Not active
Notifications
Way of sending emails: PHP
Plugins list
oauthimap Name: Oauth IMAP Version: 1.4.4 State: Enabled
Install Method: Marketplace
Anything else?
No response
After further testing, i think this is a problem with my provider