microsoftgraph / microsoftgraph/msgraph-sdk-php

Invalid enum value appleACMEDEPUDAModernAuth

Offen
#1,635 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

dependency:metadata type:bug
Vorherrschende Sprache
PHP
Sterne
669
Forks
150
Ø Merge
15 Std. 21 Min.
Gemergte PRs (30 T.)
3

Beschreibung

Describe the bug

Unable to retrieve managed device list.

Expected behavior

ManagedDevice object can be obtained.

How to reproduce

$requestConfiguration = new ManagedDevicesRequestBuilderGetRequestConfiguration();
$queryParameters = ManagedDevicesRequestBuilderGetRequestConfiguration::createQueryParameters();
$requestConfiguration->queryParameters = $queryParameters;

$result = $graphServiceClient->deviceManagement()->managedDevices()->get($requestConfiguration)->wait();

SDK Version

v2.23.0

Latest version known to work for scenario above?

No response

Known Workarounds

Add the following to Models/DeviceEnrollmentType.php
public const APPLE_ACME_DEP_UDA_MODERN_AUTH = "appleACMEDEPUDAModernAuth";

Debug output
Click to expand log ``` InvalidArgumentException: Invalid enum value appleACMEDEPUDAModernAuth in /var/www/exment/vendor/microsoft/kiota-abstractions/src/Enum.php:57 Stack trace: #0 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(170): Microsoft\Kiota\Abstractions\Enum->__construct() #1 /var/www/exment/vendor/microsoft/microsoft-graph/src/Generated/Models/ManagedDevice.php(369): Microsoft\Kiota\Serialization\Json\JsonParseNode->getEnumValue() #2 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(147): Microsoft\Graph\Generated\Models\ManagedDevice->Microsoft\Graph\Generated\Models\{closure}() #3 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(120): Microsoft\Kiota\Serialization\Json\JsonParseNode->assignFieldValues() #4 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(95): Microsoft\Kiota\Serialization\Json\JsonParseNode->getObjectValue() #5 [internal function]: Microsoft\Kiota\Serialization\Json\JsonParseNode::Microsoft\Kiota\Serialization\Json\{closure}() #6 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(94): array_map() #7 /var/www/exment/vendor/microsoft/microsoft-graph/src/Generated/Models/ManagedDeviceCollectionResponse.php(35): Microsoft\Kiota\Serialization\Json\JsonParseNode->getCollectionOfObjectValues() #8 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(147): Microsoft\Graph\Generated\Models\ManagedDeviceCollectionResponse->Microsoft\Graph\Generated\Models\{closure}() #9 /var/www/exment/vendor/microsoft/kiota-serialization-json/src/JsonParseNode.php(120): Microsoft\Kiota\Serialization\Json\JsonParseNode->assignFieldValues() #10 /var/www/exment/vendor/microsoft/kiota-http-guzzle/src/GuzzleRequestAdapter.php(170): Microsoft\Kiota\Serialization\Json\JsonParseNode->getObjectValue() #11 /var/www/exment/vendor/php-http/promise/src/FulfilledPromise.php(39): Microsoft\Kiota\Http\GuzzleRequestAdapter->Microsoft\Kiota\Http\{closure}() #12 /var/www/exment/vendor/microsoft/kiota-http-guzzle/src/GuzzleRequestAdapter.php(145): Http\Promise\FulfilledPromise->then() #13 /var/www/exment/vendor/microsoft/microsoft-graph/src/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.php(65): Microsoft\Kiota\Http\GuzzleRequestAdapter->sendAsync() #14 /var/www/exment/storage/app/plugins/MsDeviceSync/Graph.php(149): Microsoft\Graph\Generated\DeviceManagement\ManagedDevices\ManagedDevicesRequestBuilder->get() ```
Configuration

No response

Other information

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit Models/DeviceEnrollmentType.php und verfolgen Sie den im Stacktrace identifizierten ManagedDevice-Parsing-Pfad. Reproduzieren Sie die in der Issue beschriebene managed-devices-Anfrage und überprüfen Sie, dass der Wert appleACMEDEPUDAModernAuth ohne InvalidArgumentException akzeptiert wird; abgeschlossen ist die Aufgabe, wenn die Liste der verwalteten Geräte abgerufen werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
php
Bereich
api
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.