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

Highlight plugin check for empty strings #996

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

duncandotlester-2
Copy link
Contributor

What does this PR do, and why?
if the attribute that is redacted and has a value od empty string the highlight plugin was throwing an exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: -5
HighlightTransformPlugin.java:161 - processedHighlight.addHighlight

Additional changes:
N/A

How should this be tested?
Unit test has been updated to include a test for empty strings.

PR Definition of Done
minimum 2 reviewer approval
All comments resolved (nit comments are the exception and left up to the author)
Passing CI (preferred) or alternatively full local build
Any exceptions to the above should be justified prior to merging

Jason Smith and others added 3 commits August 4, 2020 13:39
Conflicts:
	pom.xml
	ui-backend/catalog-ui-enumeration/pom.xml
	ui-backend/catalog-ui-oauth/pom.xml
	ui-backend/catalog-ui-search-api/pom.xml
	ui-backend/catalog-ui-search/pom.xml
	ui-backend/catalog-ui-splitter/pom.xml
	ui-backend/intrigue-ui-app/pom.xml
	ui-backend/pom.xml
	ui-frontend/pom.xml
@derekwilhelm
Copy link
Contributor

build now

@cxddfuibot
Copy link
Collaborator

Internal build has been started, your results will be available at build completion.

@cxddfuibot
Copy link
Collaborator

Build FAILURE See the job results in legacy Jenkins UI or in Blue Ocean UI.

@cxddfuibot
Copy link
Collaborator

Suspected Failure(s):

  • Code Formatting Violations (fmt-maven-plugin)

@@ -46,6 +46,11 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

✏️ nit, formatting

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.

4 participants