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

Don't include packages with forbidden control chars in repodata + some warning fixes #165

Merged
merged 3 commits into from Jun 12, 2019

Conversation

kontura
Copy link
Contributor

@kontura kontura commented Jun 7, 2019

As discussed in #104 this PR ensures that packages with forbidden control chars are not included in repodata and appropriate warning is generated. Also when --error-exit-val is used and such a package is encountered return value is set to 2 as with other errors.

The third commit addresses compiler warnings when cmake is ran with -DCMAKE_BUILD_TYPE:STRING=DEBUG. Removing various unused code, fixing some incompatible types, initialization and so on.

@sergiomb2
Copy link
Contributor

IMO g_set_error(err, CREATEREPO_C_ERROR, CRE_XMLDATA, "Forbidden control chars found (ASCII values <32 except 9, 10 and 13).");

should print pkg , for us know where this happens , or give any sort of clue how and where this happens

@ppisar
Copy link
Contributor

ppisar commented Mar 1, 2024

A caller to cr_xml_dump() knows the package name. Or did you mean pointing to the bad byte in the package's textual metadata? The precise location would be great. But we will need to add a new function because cr_Package_contains_forbidden_control_chars() is missing an argument for returning the message and the function is listed in public header files.

@sergiomb2
Copy link
Contributor

I mean the text around the bad character

@ppisar
Copy link
Contributor

ppisar commented Mar 1, 2024

Thanks for the clarification. I recorded the request as issue #424.

@sergiomb2
Copy link
Contributor

I propose this PR: #425

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.

None yet

4 participants