-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML encoding issues #89
Comments
Did you find the migrated script was actually incorrect on the destination server? |
Sorry, I need to be a bit more precise. |
Makes perfect sense and I was afraid that's where you were going.
Suppose it would also be a nice option to have in the app the ability to choose what 'format' to export scripts. |
Well, at least it worked in previous versions of jamf-migrator. So I'd assume you changed the code at some point to encode/decode the XML before down- and uploads. If that is the case, an option to select the downloaded format would indeed help a lot. Of course, if this is not too much effort in implementing this. For the other two options:
|
Afraid I do not have any existing resources to do the encoding. Thinking some regex/stylesheets (xslt) would be involved. |
When using jamf-migrator to download scripts as trimmed sources (Download-only mode), the resulting downloaded file is not valid.
Steps to reproduce:
The downloaded trimmed xml source gets:
But instead, this would be correct:
Please note the encodings of the "greater than", "lower than" and ampersand characters. The actual script contents are not correctly encoded, which brakes the surrounding xml and subsequent uploads are going to fail.
The text was updated successfully, but these errors were encountered: