Skip to content

Commit d7f169e

Browse files
authored
Merge pull request #698 from intersystems/prod-decomp-unc
Fix parsing PTD items on network drive
2 parents 37cacb5 + fa57544 commit d7f169e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Fixed Import All options not importing the Embedded Git configuration file
2020
- Improved performance of IDE editing and baselining of decomposed productions
2121
- Fixed Discard / Stash not working on deletes (#688)
22+
- Fixed errors deploying decomposed production changes on Windows network drives (#696)
2223
- Improved performance of deploying changes to decomposed production items (#690)
2324

2425
## [2.9.0] - 2025-01-09

cls/SourceControl/Git/Production.cls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,12 @@ ClassMethod ParseExternalName(externalName, Output internalName = "", Output pro
380380
} else {
381381
if ##class(%File).Exists(externalName) {
382382
// Special case for Config Item Settings PTD, requires checking PTD CDATA for Item and Class name
383-
set deployDoc = ##class(EnsLib.EDI.XML.Document).%New(externalName)
383+
// XML parser requires \\ instead of // for network directories
384+
set deployDoc = ##class(EnsLib.EDI.XML.Document).%New($replace(externalName,"//","\\"))
385+
if '$isobject(deployDoc) {
386+
set sc = $$$ADDSC(%objlasterror,$$$ERROR($$$GeneralError,"Failed to create document"))
387+
quit
388+
}
384389
set exportNotesPTDText = $ZCVT(deployDoc.GetValueAt("/Export/Document[1]/1"),"I","XML")
385390
set exportNotesPTD = ##class(EnsLib.EDI.XML.Document).%New(exportNotesPTDText)
386391
set productionName = exportNotesPTD.GetValueAt("/Deployment/Creation/SourceProduction")

0 commit comments

Comments
 (0)