Commit a48853a
authored
Update to field to fields (#2999)
This pull request introduces improvements to error handling and logging
for image download and field mapping operations in the migration tools.
The most notable changes are enhanced diagnostics for failed image
downloads and field value mappings, and a modification to HTTP client
configuration to allow redirects.
**Error handling and diagnostics improvements:**
* Added detailed logging for failed image downloads in
`TfsEmbededImagesTool.cs`, including HTTP status codes and reason
phrases for non-404 errors.
* Enhanced debugging information in `EmbededImagesRepairEnricherBase.cs`
by logging failed HTTP responses, including status codes, reason
phrases, and location headers.
**Field mapping logic:**
* Updated `FieldToFieldMap.cs` to log when a field mapping is skipped
due to an empty value, providing clearer diagnostics for mapping
operations.
**HTTP client configuration:**
* Changed the HTTP client handler in
`EmbededImagesRepairEnricherBase.cs` to allow automatic redirects,
improving compatibility with redirected image URLs.File tree
3 files changed
+24
-5
lines changed- src
- MigrationTools.Clients.TfsObjectModel/Tools
- FieldMappingTool/FieldMaps
- MigrationTools/Tools/Infrastructure
3 files changed
+24
-5
lines changedLines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
129 | | - | |
| 136 | + | |
0 commit comments