Invalid enum value appleACMEDEPUDAModernAuth

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

Dieses Issue hat noch niemand übernommen.

Bewertung

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

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.

Beschreibung

dependency:metadata type:bug
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

Vorherrschende Sprache
PHP
Sterne
669
Forks
149
Ø Merge
1 T. 4 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoftgraph/msgraph-sdk-php

Alle Issues in microsoftgraph/msgraph-sdk-php

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

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