microsoftgraph / microsoftgraph/msgraph-sdk-python

Move email with static graph ID for email results in duplication of emails

Offen
#1,042 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area: API Support priority:p1
Vorherrschende Sprache
Python
Sterne
630
Forks
96
Ø Merge
15 Std. 20 Min.
Gemergte PRs (30 T.)
3

Beschreibung

Describe the bug

Using the move mail endpoint with immutable graph ids for mail creates duplicate mails

    headers = HeadersCollection()
    headers.add("Prefer", 'IdType="ImmutableId"')

was used to get the immutable graph id

  1. Place email in test inbox ("Invoice processor test inbox"):
    image

  2. Move email manually in OWA to another folder ("Invoice processor test cannot process")
    image

  3. Call the move email endpoint to move email to ("Invoice processor test done"):
    Email is moved out of inbox ("Invoice processor test inbox"):
    image
    Test emails moves to target folder ("Invoice processor test done")
    image
    Test email unexpectedly also stays in ("Invoice processor test cannot process")
    image

I now have a duplicate of the email. This should not happen if you call move on a email right? Is this intended behavior because of the use of immutable graph IDs or is this a bug?

Expected behavior

Email should be moved not duplicated

How to reproduce

See bug description

SDK Version

1.12.0

Latest version known to work for scenario above?

No response

Known Workarounds

Use non static graph ID

Debug output

No response

Configuration

Ubuntu 22.04

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

Beginne mit dem move mail endpoint und der im Bericht gezeigten Anfrage für eine unveränderliche Graph ID. Reproduziere die Sequenz mit SDK 1.12.0 und vergleiche sie anschließend mit dem dokumentierten Workaround für eine nicht statische ID, um festzustellen, ob die Duplizierung im SDK oder im Graph-Dienst entsteht. Als abgeschlossen gilt die Aufgabe, wenn die Ursache identifiziert und ein Fix für das Verschieben ohne Duplizierung dokumentiert oder getestet wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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