Code Monkey home page Code Monkey logo

Comments (10)

kontura avatar kontura commented on July 21, 2024

Indeed it is caused by that changelog entry.
Looking at the specfile extracted from source rpm it contains the Escape character: 0x1B ascii.
That really shouldn't be there.

from createrepo_c.

musicinmybrain avatar musicinmybrain commented on July 21, 2024

This will be fixed in the package: https://src.fedoraproject.org/rpms/python-pyABF/pull-request/1

Iā€™m leaving this bug open for now. It can be closed if the behavior of createrepo_c is expected under the circumstances.

from createrepo_c.

nirik avatar nirik commented on July 21, 2024

IMHO it would be nice if createrepo_c filtered out Forbidden control chars and just warned on them. (Or had a option to fail on them).

We could/should also look at filtering them out with a git hook.

from createrepo_c.

kontura avatar kontura commented on July 21, 2024

This was already discussed here: #104, since then --error-exit-val became the default and I think failing is the correct behavior in this case.

Dropping the chars might be fine from a changelog but if they were in a provide or a filename it could cause quite a bit of mysterious trouble.

We could possibly introduce an opposite option like --no-error-exit-val. In this case that would drop the package and printed a warning. Although the same could be achieved by manually excluding the package.

from createrepo_c.

dralley avatar dralley commented on July 21, 2024

I'm not sure a soft-failure that removes the package entirely is a great idea, the warnings may be missed (think automated scripts) and the package in question could well contain some important update, or else break dependency chains.

Probably best to fail earlier in that case than let things break later on.

from createrepo_c.

j-mracek avatar j-mracek commented on July 21, 2024

In general we should reject requests to tolerate package issues and somehow proceed with remaining elements. I understand that it is more expected from DNF to be more tolerant for problems, but at the level of createrepo it is expected to not finish the request and report an issue. What we can discuss whether we should exit at the first problem (fail fast) or scan remaining data and report all problems. Failing has one advantage - the problem is discovered before repositories are distributed. It is much easier to debug the issue with one repo maintainer then with thousands of repo users.

from createrepo_c.

m-blaha avatar m-blaha commented on July 21, 2024

Given that the failing changelog entry was autogenerated - shouldn't there be a check for such errors in the generator?

from createrepo_c.

nirik avatar nirik commented on July 21, 2024

The changelog is generated from the git history. The esc is actually in git history, so to completely fix this we would have to edit history and break the repo. ;(
But in any case I understand the logic here. We should probibly look at a hook that just rejects changelog entries/comments with control chars in the first place.

from createrepo_c.

dralley avatar dralley commented on July 21, 2024

rpmbuild should probably reject control characters in requirement names, filenames & package names completely, and strip them from changelogs

createrepo_c should probably warn + strip

Alternatively, I believe it is possible to use control characters in XML but only if you encode them as XML character refeferences.

from createrepo_c.

kontura avatar kontura commented on July 21, 2024

The consensus is to fail early (to preserve current behavior).
Therefore I am closing the issue, thank you for the discussion.

from createrepo_c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.