chef / chef/chef-server

If a node attribute that contains => 244 characters is created, a knife search for content beyond that limit will not return a result.

Open
#2,045 2 comments 0 reactions 3 assignees View on GitHub

@jashaik is already working on this.

Since Jul 9, 2021.

Epic Status: move to jira
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Issue as reported by a customer:
If a node attribute that contains => 244 characters is created, a knife search for content beyond that limit will not return a result.

To Reproduce
Yes. knife node edit and create a node attribute that has a 244 character string, then knife search for the 244th character in the string. No result will be returned

Expected behavior
knife search returns a result

Additional context
TRI-703 (https://chefio.atlassian.net/browse/TRI-703)
What we determined during our reproduction attempt is that this appears to be an issue in Solr4. Furthermore, opscode_solr4['max_field_length'] seems like it should have an effect on this, but doesn't. Our suspicion is because the actual Solr4 configuration item that this directive is supposed to manipulate has changed; from solrconfig.xml:

{code}

{code}

We attempted to implement the new configuration item directly in Solr4 and reconfigure/restart/reindex, but it still did not have an effect on knife search

Aha! Link: https://chef.aha.io/features/SH-336

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.