Skip to content
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

Fix for Issue #640 - config.xml misformatted #641

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

tGecko
Copy link
Contributor

@tGecko tGecko commented Jan 17, 2025

  • Move the license after the opening XML tag. Per spec, first characters of an XML file must be <?xml

... encoding must begin with an XML encoding declaration, in which the first characters must be '<?xml' ...

  • Remove the BOM as it is not needed for UTF-8 encoded XML files

Fixes #640

CLA has been signed.

Copy link

@Saad-Alaref Saad-Alaref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have done the same thing before reading this pull request, and it does indeed work.
This also fixes #642 and #643 since they are duplicates of #640.

Copy link
Member

@Ana06 Ana06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems I broke this file in #638, breaking FLARE-VM 🙈 I used addlicense to add the headers and it seems a <feff> (Byte Order Mark (BOM)) in this file caused that it added the header in the wrong way, breaking the file. I am not sure if this a bug in addlicense as the BOM likely shouldn't be there, as I also think it is not needed. In any case, @tGecko thanks for reporting and fixing the bug! 💐 @Saad-Alaref thank for confirming the fix work and the additional details 💐

@Ana06 Ana06 merged commit 846d20e into mandiant:main Jan 20, 2025
1 check passed
@JackStuart
Copy link

Hi @Ana06, It was a bug in Addlicence - I have created a PR to fix it. Maybe you might have more traction getting someone in Google to take a look at it because it hasn't been updated in 2.5 years

google/addlicense#166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken default config.xml
4 participants