microsoft / microsoft/sqlmanagementobjects
SqlScriptPublishModel fires ScriptItemsCollected event with duplicate URNs
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 143
- Forks
- 28
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When using SqlScriptPublishModel.SelectedObjects to provide URNs of objects to script, the application may have constructed the URN manually with user input.
During scripting, the URNs used to populate progress events are generated by SMO based on server and database queries. As a result the Server[@Name='myserver'] component of the output URN may be of a different case than that of the input URN, causing some internal dictionary lookups based on URN keys to fail. Applications will see this in the ScriptItemsCollected event where the ScriptItemsArgs.Urns collection may have multiple instances of the URN, differing only by the case of the server name component.
We found this in a sql tools service test case failure when the server name case in the local settings json file mismatches the server's self-reported name.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit SqlScriptPublishModel.SelectedObjects und dem ScriptItemsCollected-Ereignis. Reproduzieren Sie anschließend den Fehler mithilfe des im Issue verknüpften Testfalls SqlScriptPublishModelTests.cs. Erledigt ist die Aufgabe, wenn die Sammlung ScriptItemsArgs.Urns keine URNs enthält, die sich nur durch die Groß-/Kleinschreibung unterscheiden, wenn sich die Groß-/Kleinschreibung des Servernamens unterscheidet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, sql
- Bereich
- databases
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 50/100