microsoftgraph / microsoftgraph/msgraph-sdk-java

Creating a Team always returns an empty Team : Cannot get the ID of the created Team.

Aperta
#2,238 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Needs: Attention :wave: type:question
Lingua principale
Java
Stelle
444
Fork
154
Merge medio
18h 28m
PR unite (30g)
4

Descrizione

Describe the bug

Hello,

I'm using com.microsoft.graph:microsoft-graph:6.21.0 right now.

I'm trying to create a new team and then to get the ID, and the Operation ID of the result.

Team result = getGraphClient().teams().post(team);

The returned Team is always null as the JSON returned by the API is always empty. It seems that those informations are returned in the response header but I cannot access to it as the response is just a Team object.
In v5, it was returned in the object.

How am I supposed to retrieve the ID and the Operation ID of a newly created Team ?

Expected behavior

I expected that the returned Team object will contain the ID and the Operation as it was the case in the v5 of this library.

How to reproduce

Create a team with the code :

Team result = getGraphClient().teams().post(team);

The result will always be a null object.

SDK Version

6.21.0

Latest version known to work for scenario above?

5.x

Known Workarounds

None

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con la chiamata teams().post(team) nel Java SDK e confronta il suo comportamento nella versione 6.21.0 con il comportamento segnalato nella versione 5.x. Esamina come la risposta di creazione espone il Team ID e l’ID dell’operazione, quindi verifica che il risultato non sia più null e che entrambi i valori siano accessibili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.