summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Use versioned index directories for repository indices.Florian Zschocke2017-03-053-48/+339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change from the index version of a repository index being stored in a config file to also using index directories with the version in the name. For that, `LuceneRepoIndexStore` is added, which adds the fixed `lucene` part to the path. It also gives out the location of the `lucene.conf` file, which is now stored in the index directory. This way it is automatically deleted when the directory is deleted. I believe that it should also provide means to store branch aliases and tips, i.e. hide the config file completely. But this isn't implemented with this commit, the `LuceneService` is still aware that a config file is used.
| * | | Introduce an index version for the ticket indexFlorian Zschocke2017-03-053-9/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to be able to update the index definition, the ticket index is assigned a version number, 2. This way the definiton can be updated and compatability with existing index files can be checked. The actual index is stored in a directory of name `indexVersion_codecVersion`. This wayit is veriy easy to check if an index of a certain version exists on the filesystem. It allows to have multiple indexes of different versions present, so that a downgrade of the software is possible without having to reindex again. Of coure, this is only possible if no new tickets were created since these would be missing in the old index. A new class `LuceneIndexStore` is introduced, which abstracts away the versioned index directory. The idea is, that this provides one place to keep the Lucene codec version and to allow to code compatibility rules into this class, so that older indices can still be used if they are compatible.
| * | | Add DocValues to support sorting of ticket index fields.Florian Zschocke2017-03-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to support sorting, Lucene 5 needs DocValue fields in an index. So in order to make the ticket index work, i.e. show any tickets on the tickets page, the ticket index needs to be changed, adding a DocValues field. The DocValuesFields are implemented for the current index, which does not use multiple values for a field. Should at any time in the future an existing numeric field get multiple values stored in a document, then the index needs to know that and use SortedNumeric DocValues and SortFields instead.
| * | | Replace deprecated BooleanQuery constructor with builder.Florian Zschocke2017-03-052-15/+13
| | | | | | | | | | | | | | | | | | | | Also replace deprecated `search` method with the one without a filter argument, since the filter isn't used anyhow.
| * | | Update link target to Lucene 5.5 query syntax, moving the link to the page.Florian Zschocke2017-03-0516-119/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the link target to the query parser syntax page of the 5.5 version. Refactor the `LuceneSearchPage` to use an `ExternalLink` for the link to the lucene page, so that the link target is kept and updated in the Java code. Move the link out of the language files. This was way too cumbersome to update the link target (which is probably why no one ever did). The query help text is changed to contain a variable: `gb.queryHelp = here be some ${querySyntax} help`, which is replaced by Wicket with a link. The link text is a new lange file property: `gb.querySyntax`.
| * | | Remove obsolete Lucene version constants.Florian Zschocke2017-03-052-6/+0
| | | |
| * | | Add library `lucene-backward-codecs` to migrate indices.Florian Zschocke2017-03-053-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to read and migrate Lucene indices from old (4.x) formats to new (5.x) ones, add the `lucene-backward-codecs` library to the project. It is added to the `ext` directory and therefore to the classpath. According to the Lucene documentation, having it in the classpath can affect performance. But right now the `ext` directory is the only one available and even for a separate tool for offline migration the library would be needed.
| * | | Exclude Lucene transitive dependencies.Florian Zschocke2017-03-053-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Exclude Lucene dependencies `lucene-spatial` and `lucene-join`. They were added during the update but are not needed. This patch excludes them explicitly so that they do not show up in the generated IDE files and `ext` directory.
| * | | Bump to Lucene 5.5.2Luca Milanesio2017-03-055-55/+55
|/ / /
* | | Merge pull request #1207 from j123b567/fix/cs_localeJames Moger2017-03-031-76/+76
|\ \ \ | |/ / |/| | Better Czech localization
| * | Better Czech localizationJan Breuer2017-03-031-76/+76
|/ /
* | Merge pull request #1202 from j123b567/feature/treeViewTableJames Moger2017-02-211-0/+1
|\ \ | | | | | | Prevent last column on Tree page from wraping
| * | Prevent last column on Tree page from wrapingJan Breuer2017-02-201-0/+1
|/ / | | | | | | | | With localizations, there can be longer text then 13em so there is a line break. This fix prevent this line breaking and thus every line has normal height again.
* | Merge pull request #1201 from j123b567/bug/1114James Moger2017-02-161-1/+3
|\ \ | | | | | | Fix #1114 HttpUtils getGitblitURL does not support nonstandard ports
| * | Fix #1114 HttpUtils getGitblitURL does not support nonstandard portsJan Breuer2017-02-151-1/+3
|/ / | | | | | | | | X-Forwarded-Host can contain port number and it is added twice in that situation This fix just prevent adding port number if it is already there
* | Merge pull request #1200 from j123b567/locale/csJames Moger2017-02-155-0/+854
|\ \ | | | | | | Add Czech locale
| * | Add Czech localeJan Breuer2017-02-155-0/+854
|/ /
* | Merge pull request #1192 from mystygage/listBranchForRepositoryJames Moger2017-02-082-1/+6
|\ \ | | | | | | List branches from only one repository if a repository name is given
| * | List branches from only one repository if a repository name is givenMarkus Fömpe2017-01-262-1/+6
| | | | | | | | | | | | | | | | | | e.g.: https://localhost:8443/rpc/?req=LIST_REPOSITORY_BRANCHES&name=repo.git Fix #1184
* | | Merge pull request #1198 from WilliamFromTW/masterJames Moger2017-02-0812-41/+239
|\ \ \ | | | | | | | | New Setting "Default Language" when creating user
| * | | New Setting "Default Language" when creating user.william2017-02-084-29/+71
| | | |
| * | | fix bug "get user default language null exception"william2017-01-251-1/+5
| | | |
| * | | Sending email (certificate zip file) based on locale that user selectedwilliam2017-01-248-12/+164
| |/ /
* | | Merge pull request #1187 from gitblit/revert-1186-listBranchForRepositoryJames Moger2017-01-253-15/+1
|\ \ \ | | | | | | | | Revert "New rpc endpoint for listing all branches from a given repository"
| * | | Revert "New rpc endpoint for listing all branches from a given repository"James Moger2017-01-253-15/+1
|/ / /
* | | Merge pull request #1186 from mystygage/listBranchForRepositoryJames Moger2017-01-253-1/+15
|\ \ \ | |/ / |/| | New rpc endpoint for listing all branches from a given repository
| * | New rpc endpoint for listing all branches from a given repositoryMarkus Fömpe2017-01-253-1/+15
|/ /
* | Merge pull request #1183 from RainerW/fixApacheProxySampleJames Moger2017-01-231-0/+1
|\ \ | | | | | | Documentation update : "behind apache" also edit "Ajax-Location" header
| * | when apache terminates https, the Ajax-Location header needs to be rewritten ↵RainerW2017-01-231-0/+1
|/ / | | | | | | as well
* | Merge pull request #6 from fzs/sshAuthMethodsFlorian Zschocke2017-01-212-9/+52
|\ \ | | | | | | Set list of offered SSH authentication methods.
| * | Set list of offered SSH authentication methods.merged--sshAuthMethodsFlorian Zschocke2016-12-062-9/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the SSH authentication methods used by the server configurable, so that for example password authentication can be turned off. For this, a `git.sshAuthenticationMethods` setting is added which is a space separated list of authentication method names. Only the methods listed will be enabled in the server. This is modeled after the option of the same name from sshd_config, but it does not offer listing multiple required methods. It leaves the door open, though, for a later extension to support such a multi-factor authentication. Since this also includes Kerberos authentication with GSS API, this obsoletes the `git.sshWithKrb5` property. The latter is removed. Instead, to enable Kerberos5 authentication, add the method name `gssapi-with-mic` to the authentication methods list.
* | | Merge pull request #1178 from srbala/patch-1Florian Zschocke2017-01-162-6/+6
|\ \ \ | | | | | | | | | | | | Update declaration to Servlet 3.0 in web.xml and weblogic.xml. Fixes #1132
| * | | Update weblogic.xmlBala Raman2017-01-161-2/+2
| | | | | | | | | | | | Update to web app 3.0 xsd
| * | | Update to web.xml, fix to #1132Bala Raman2017-01-151-4/+4
|/ / / | | | | | | | | | | | | Update to web.xml, fix to #1132 Fixes to namespace to fix xml parse error, where strict validation required
* | | Merge pull request #1171 from pingunaut/usermanager-file-instantiationJames Moger2017-01-062-2/+25
|\ \ \ | | | | | | | | Update UserManager to support construction of IUserServices with IRuntimeManager as a constructor parameter
| * | | extracted methodMartin Spielmann2017-01-061-9/+20
| | | |
| * | | updated commentde4c9d2016-12-301-1/+1
| | | |
| * | | update user manager to support instantiation if IUserService with ↵de4c9d2016-12-302-2/+14
| | |/ | |/| | | | | | | IRuntimeManager as a parameter
* | | Merge pull request #1176 from ds5apn/masterJames Moger2017-01-051-718/+759
|\ \ \ | | | | | | | | Update korean translation for gitblit new version.
| * | | Update korean translation for gitblit new version.DONGSU, KIM2017-01-051-718/+759
|/ / /
* | | Increase minor version number to 9Florian Zschocke2017-01-021-1/+1
| | | | | | | | | | | | | | | Bump version to 1.9.0-SNAPSHOT, increasing the minor as the next release includes interface changes.
* | | Merge branch 'ci', enabling CI services.Florian Zschocke2017-01-022-0/+24
|\ \ \
| * | | Add build definition file for Circle CIFlorian Zschocke2017-01-021-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure the build for Circle CI in the new file circle.yml. Specify a compile step to have the build fail on compilation error. The test step is then configured as `ant test`, which will compile again due to the limits of Ant/Moxie. Contrary to the documentation, the default Java version on Circle CI is Java 8. The project is set as a Java 7 project. We define to use OpenJDK 7, because the Gitblit build has some trouble with Java 8, I consider Java 7 the default, and Circle CI does not provide an Oracle JDK 7 installation to use. I could only get it to work with OpenJDK 7. The Java version is reported in the Circle CI build script to ease analysis. Test and coverage reports get stored as artifacts for a build, which allows to browse them in the Circle CI web interface.
| * | | Add definition file for Travis CIFlorian Zschocke2017-01-021-0/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | Add the most basic build definition file for Travis CI. It only defines the project language as Java. For the rest the defaults are kept as Travis seems to work fine with them. We add `.travis.yml` as a dotfile in order not to clutter the top directory with too much non-project files.
* | | Update to explicit versions of JUnit 4.12 and JaCoCo 0.7.8Florian Zschocke2016-12-213-6/+6
| |/ |/| | | | | | | | | | | | | | | | | Use explicit coordinates, and therefor version numbers fro JUnit in the build.moxie file. It should not be some version that just happens to be used. Update JUnit to latest 4.12. Update JaCoCo to lates 0.7.8, which makes it work under Java 8. The last used version would fail when tests are run under Java 8.
* | Add test resources path `src/test/resources` to project configurationFlorian Zschocke2016-12-193-0/+3
| |
* | Fix typo in defaults.properties.Florian Zschocke2016-12-181-1/+1
| |
* | Merge pull request #1160 from fzs/sshLdapAuthenticatorFlorian Zschocke2016-12-1814-625/+2276
|\ \ | | | | | | LDAP SSH key manager
| * | Extend documentation in default.properties and LdapKeyManager.java.merged--sshLdapAuthenticatorFlorian Zschocke2016-12-062-2/+31
| | |
| * | The public key manager can disable writing keys, which hides commandsFlorian Zschocke2016-12-066-12/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some public key mangers may be read-only, i.e. not allow to add or delete keys, or to change the key comment or assigned permissions. In such a case the respective commands should not be available on the SSH shell and the SSH Keys panel should also not offer the possibility. The `IPublicKeyManager` gets three new methods, modelled after the `AuthenticationManager`: `supportsWritingKeys`, `supportsCommentChanges` and `supportsPermissionChanges`. They return true if a key manager allows for keys to be written or updated. For example the existing `FileKeyManager` will return true for all three since it allows to store and update keys in a file. The new `LdapKeyManager` returns false since it only accesses LDAP and can not add or update any keys in the directory. A future key manager might get keys from an LDAP directory but still keep comments and permissions for it in a local copy. If writing of keys is not supported: * the welcome shell does not suggest adding a key, * the `SshKeysDispatcher` does not offer the "add", "remove", "comment" and "permission" commands, and * the SSH keys panel hides the "delete" button in the key list, and the "Add Key" form. The hiding of the "Add key" form is not perfect since the surrounding div is still shown, but I don't know how to hide it and it didn't look too bad, either.