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

[cli] Fix link in gerrit output #3572

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

csordasmarton
Copy link
Contributor

Closes #3571

If CC_REPORT_URL is defined and gerrit format is used at CodeChecker parse
or CodeChecker cmd diff commands, the output will contain the value of this
environment variable wrapped inside quotes. When this output is sent to gerrit,
it will convert URL links to HTML a tags. Unfortunately gerrit will think that
the ending quote is part of the URL, so it will not remove it. This way the
URL will be invalid.

To solve this problem in this patch we will remove the quotes around the URL link.

@csordasmarton csordasmarton added CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands bugfix 🔨 test ☑️ Adding or refactoring tests labels Jan 6, 2022
@csordasmarton csordasmarton added this to the release 6.19.0 milestone Jan 6, 2022
If `CC_REPORT_URL` is defined and `gerrit` format is used at `CodeChecker parse`
or `CodeChecker cmd diff` commands, the output will contain the value of this
environment variable wrapped inside quotes. When this output is sent to gerrit,
it will convert URL links to HTML `a` tags. Unfortunately gerrit will think that
the ending quote is part of the URL, so it will not remove it. This way the
URL will be invalid.

To solve this problem in this patch we will remove the quotes around the URL link.
@bruntib bruntib merged commit fe7469f into Ericsson:master Jan 7, 2022
@csordasmarton csordasmarton deleted the fix_link_in_gerrit_output branch January 28, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix 🔨 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands test ☑️ Adding or refactoring tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid link to report URL in Gerrit review
2 participants