fix XML formatting of RemoveProfile command (#9805)

potential fix for https://github.com/fleetdm/fleet/issues/9802, I still
can't reproduce locally but it might be that ngrok is doing some magic
encoding/decoding the bytes transferred.
This commit is contained in:
Roberto Dip 2023-02-13 17:20:43 -03:00 committed by GitHub
parent d8bb038f85
commit 119ada71da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -924,7 +924,7 @@ func (svc *Service) enqueueMDMAppleCommandRemoveEnrollmentProfile(ctx context.Co
func generateMDMAppleCommandRemoveEnrollmentProfile(cmdUUID string, profileUUID string) string {
return fmt.Sprintf(`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CommandUUID</key>