Dangling name error when trying to update extensionAttributes on a device
@Ndiritu ya está trabajando en esto.
Desde el 24/10/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Describe the bug
I am trying to update one of the extensionAttribute values within the additionalData of a device, but getting the following error:
java.lang.IllegalStateException: Dangling name: extensionAttributes
I'm following the example 2 from here - https://learn.microsoft.com/en-us/graph/api/device-update?view=graph-rest-1.0&tabs=java - although the example isn't fully complete for updating the extensionAttributes. There seems to be a model within the SDK to use for OnPremiseExtensionAttributes but not for extensionAttributes.
If I get additonalData using device.getAdditionalData() it contains the the list of the 15 extensionAttributes that can be used.
Expected behavior
Expect the extensionAttribute to update successfully, which works if updating via HTTP for example.
How to reproduce
Device newDevice = new Device();
Map<String,Object> additionalData = new HashMap<>();
Map<String,String> attribute = new HashMap<>();
attribute.put("extensionAttribute1", "123456");
additionalData.put("extensionAttributes", attribute);
newDevice.setAdditionalData(additionalData);
try {
client.devices().byDeviceId(deviceId).patch(newDevice);
} catch(Exception e) {
//handle exception
}
SDK Version
6.16.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- Lenguaje dominante
- Java
- Estrellas
- 444
- Forks
- 154
- Merge medio
- 18 h 28 min
- PR fusionados (30 d)
- 4
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoftgraph/msgraph-sdk-java
-
status:waiting-for-triage type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
-
status:waiting-for-triage type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
microsoftgraph/msgraph-sdk-java#2656 ·
-
status:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
-
status:waiting-for-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
-
Error in PATCH onlineMeeting Abiertostatus:waiting-for-triage type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
microsoftgraph/msgraph-sdk-java#2589 · 1 comentario ·