| | |
| | |
|
| | | #### fixes
|
| | |
|
| | | - Fixed Lucene charset encoding bug when reindexing a repository (issue 112)
|
| | | - Fixed null pointer in LdapUserSerivce if account has a null email address (issue 110)
|
| | |
|
| | | #### changes
|
| | |
| | | return result;
|
| | | }
|
| | | try {
|
| | | String [] encodings = storedSettings.getStrings(Keys.web.blobEncodings).toArray(new String[0]);
|
| | | FileBasedConfig config = getConfig(repository);
|
| | | Set<String> indexedCommits = new TreeSet<String>();
|
| | | IndexWriter writer = getIndexWriter(model.name);
|
| | |
| | | }
|
| | | in.close();
|
| | | byte[] content = os.toByteArray();
|
| | | String str = new String(content, Constants.CHARACTER_ENCODING);
|
| | | String str = StringUtils.decodeString(content, encodings); |
| | | doc.add(new Field(FIELD_CONTENT, str, Store.YES, Index.ANALYZED));
|
| | | os.reset();
|
| | | }
|