summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Change issue links in release history to point to correct GitHub issuesFlorian Zschocke2019-11-172-266/+266
| | |
* | | Update release notesFlorian Zschocke2019-11-171-3/+3
| | |
* | | Update release notesFlorian Zschocke2019-11-161-9/+107
| | |
* | | Adjust versions of JaCoCo and parboiled to match and work.Florian Zschocke2019-11-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust the version of JaCoCo down to 0.8.4 and the version of parboiled-java up to 1.3.1. They need to match because both use ASM. This combination has the same dependency on ASM: 7.1. And it seems to work, at least the docs get generated and the `moxie test` doesn't fail building the report anymore.
* | | Update test file with MD hashed passwordFlorian Zschocke2019-11-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | With the feature of passwords getting automatically upgraded to a hashed version, the default `admin` password in the test-users file will get stored as MD5 hashed during test execution. Commit this change, so that the file isn't always showing up as changed.
* | | Set .classpath back to moxie generated version.Florian Zschocke2019-11-111-5/+0
| | |
* | | Update JaCoCo to version 0.8.5 to work when run under Java 11.Florian Zschocke2019-11-111-1/+1
| | | | | | | | | | | | Running `moxie test` will crash under Java 11 with JaCoCo 0.7.8.
* | | Merge pull request #1324 from fzs/fix-prefLocale-docsNPEFlorian Zschocke2019-11-114-46/+37
|\ \ \ | | | | | | | | Two fixes: broken links to docs and preferred language selection
| * | | Fix user preferences selecting the wrong preferred locale.Florian Zschocke2019-11-112-46/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a wrong comparison, when loading the preferred locale in the user preferences page, in cases like `zh_CN` or `de_DE` the wrong locale would be chosen. As with too many things, the code is duplicated on the `UserPage` and the `EditUserPage`. And they differ. So extract the choosing of the preferred language for display into a method in the (more up-to-date) `UserPage` and call that from the `EditUserPage`.
| * | | Guard docs pages against bad URLsFlorian Zschocke2019-11-112-0/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | If, for example, an external site links to a docs page or a specific doc page, and the branch that link points to is no longer existing, an internal error happens due to a NPE. The NPE is guarded against and a No Docs page is returned.
* | | Add `clone.bundle` as known command, but reject it as not implemented.Florian Zschocke2019-11-113-3/+32
| | |
* | | Fix NPE when no action can be parsed from the URLFlorian Zschocke2019-11-113-30/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renames `static final` variables according to convention to be in all upper case. That makes it easier to see that in an `equals` comparison the final variable should come first as it will not trigger a NPE. Also strip parameters from the URL when extracting the repository name from it. Parameters can not be part of a repository name, and this way an empty repository name can be detected. Fixes #1092
* | | :book: Fix link to LDAP sample data LDIF file in setup.Florian Zschocke2019-11-101-1/+1
| | |
* | | In SSH tests ignore an external SSH toolFlorian Zschocke2019-11-101-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SshDaemonTest would fail under Windows. That is because JGit looks at the `GIT_SSH` environment variable. If it is set, the tool the variable is pointing to is used for the SSH connection. This is a problem when it is set to "Plink" under Windows, because Plink will not recognize the server key and will not find it in the registry, cached as a known host. Since a test can/should not add the key to the registry but simply wants to ignore it, but there is no way to tell Plink to do so, the tests would fail. This patch filters the `GIT_SSH` environment variable from JGit's `SystemReader`, so that the internal SSH client is used.
* | | Merge pull request #1322 from fzs/sshd_updateFlorian Zschocke2019-11-1010-35/+56
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Update dependencies MINA to 2.0.21 and SSHD to 1.2.0 Update SSHD to fix an issue with hmac-sha2-512. This resolves problems with clients that prefer SHA-512 over SHA-256. This also updates the dependency on SLF4J to the latest version, as the updated dependency on MINA did also bring in higher SLF4J versions.
| * | | Update SLF4J dependency to latest version 1.7.29.Florian Zschocke2019-11-103-9/+9
| | | |
| * | | Update SSHD dependency to version 1.2.0.Florian Zschocke2019-11-107-9/+23
| | | |
| * | | Update SSHD dependency to version 1.1.0.Florian Zschocke2019-11-108-18/+25
| | | |
| * | | Update MINA to version 2.0.21.Florian Zschocke2019-11-103-5/+5
|/ / / | | | | | | | | | This includes a fix in MINA to a CVE.
* | | Update BouncyCastle dependency to version 1.57Florian Zschocke2019-11-103-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | To support the new PBKDF2 password hashing, the Bouncy Castle provider needs to be updated to a version that supports PBKDF2 with HMAC SHA265. The current version doesn't have PBKDF2WithHmacSHA265, and neither does Java 7, so that under Java 7 it can not be used. This update enables the new password hashing under Java 7, too.
* | | Ignore the `RedisTicketService` tests until they are fixed.Florian Zschocke2019-11-101-0/+3
| | | | | | | | | | | | | | | Currently the tests cannot run as no Redis is available. Needs to be fixed at some time.
* | | Remove Launcher from Manager and Federation Client.Florian Zschocke2019-11-083-170/+4
| | | | | | | | | | | | | | | They will need to be called with the classpath and main class now, instead of simply using the Jar.
* | | Merge pull request #1266 from pingunaut/1262_java9Florian Zschocke2019-11-073-0/+13
|\ \ \ | | | | | | | | Added javax.activation dependency
| * | | Update to recommended com.sun.activation package.Florian Zschocke2019-11-073-5/+5
| | | | | | | | | | | | | | | | | | | | Update the dependency to the recommended JAF stand-alone com.sun.activation:javax.activation:1.2.0
| * | | Added javax.activation dependency "Martin Spielmann2017-11-033-0/+13
| | | | | | | | | | | | | | | | thanks to this dependency, one can start gitblit with java 9 without using deprecated internal module --add-modules java.activation
* | | | Fix NullpointerException when stopping GitBlit Server.Florian Zschocke2019-11-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When GitBlit server did not start properly, is running but couldn't start the `PluginManager`, then stopping the server via the `--stop` argument on the command line resulted in a NullpointerException. Which left the server running. Now this is prevented and the server will actually shut down.
* | | | For Java 9+ define the classpath instead of using a Launcher.Florian Zschocke2019-11-0714-335/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The (moxie and other) Launcher do not work with Java 9 and later anymore. It used to dynamically extend the classpath, misusing an internal interface of the `URLClassLoader`. This is no longer possible since Java 9, which closed that path and does not offer any way to dynamically extend the classpath during runtime. So the choice is between providing one large Jar with everything in it, providing a Jar that has the Jars in `ext` listed explicitly in its manifest, and specifying the classpath on the command line where the `ext` directory can be added and all contained jar files will be put on the classpath. The motivation for the Launcher class was to be able to simply drop new jar files into a directory and they will be picked up at the application start, without having to specify a classpath. We opt for solution three here. This way jar files can still be dropped into the ext directory, albeit the directory needs to be added to the classpath on the command line. Unfortunately using a wildcard is not possible in the manifest file. We change the calls in the script files accordingly. This seems like a good compromise, since no one will run the application manually typing the whole commandline anyway. This also does away with the splash screen, by the way. Again, doesn't seem like a big loss, as I don't think it was ever shown for the Authority. Personally, I am not convinced that it is the best way, because I don't really think that the use case of dropping whatever jar files into the `ext` directory is a valid one that happened a lot. This does not yet fix the client programs, which still use a Launcher. Maybe for them a all-in-one Jar is a better solution. Fixes #1262 Fixes #1294
* | | | Report Java versions used during build and server start.Florian Zschocke2019-11-072-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With three versions about to be supported right now it is getting more important to know which Java version is used when building and testing Gitblit, and which Java version is used to run Gitblit. So have the Moxie build report the javac version, and the JVM version that Moxie is running on. These might be different. The `GitBlitServer` will print the Java version and vendor, so that it gets visible if a user would paste a log output for analysis.
* | | | Setup build matrix for OpenJDK 8, 9 and 11 on Circle CIFlorian Zschocke2019-11-061-21/+44
| | | |
* | | | Travis: Build and test on JDK 7, 8 and 11.Florian Zschocke2019-11-061-0/+6
| | | | | | | | | | | | | | | | | | | | This uses the Trusty (14.04) image since that in the only one where all three JDKs are available.
* | | | Merge branch 'pingunaut-1166_more_secure_password_hashes' into master.Florian Zschocke2019-11-0611-57/+1340
|\ \ \ \
| * | | | Add more PasswordHash tests with strings beyond iso-8859-1.Florian Zschocke2019-11-061-1/+31
| | | | |
| * | | | Use the new PasswordHash classes.Florian Zschocke2019-11-0512-374/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integrate the `PasswordHash` class and subclass in the user and password editing and authentication. Replaces the old code and the previous `SecurePasswordHashingUtils` class.
| * | | | Add support for PBKDF2 to PasswordHashFlorian Zschocke2019-11-053-15/+507
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integrate the work of pingunaut to add support for PBKDF2 password hashing. A new class `PasswordHashPbkdf2` is added, which builds on his `SecurePasswordHashUtils` class, but makes it a subclass of `PasswordHash`. This will replace the original class when integrating the new PasswordHash way into GitBlit.
| * | | | Add a PasswordHash class as a central place to deal with password hashes.Florian Zschocke2019-11-052-0/+640
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of having to deal with the implementation details of hashing and verifying passwords in multiple places, have a central unit be responsible for it. Otherwise we need to edit three different places when adding a new hashing scheme. With this class adding a new hashing scheme just requires creating a new subclass of `PasswordHash` and registering its type in the enum `PasswordHash.Type`. The rest of the code will use a common interface for all hashing schemes and doesn't need to be changed when a new one is added.
| * | | | fix commentMartin Spielmann2017-01-071-1/+1
| | | | |
| * | | | Replaced duplicated strings by using constantMartin Spielmann2017-01-072-4/+4
| | | | |
| * | | | Update AuthenticationManager to update weakly stored passwords on loginMartin Spielmann2017-01-073-10/+61
| | | | |
| * | | | Added possibility to use secure hashes to store passwordsMartin Spielmann2017-01-017-7/+266
| | | | | | | | | | | | | | | | | | | | Addresses #1166
* | | | | encoded email's sender name with utf-8.william2019-06-161-1/+1
| | | | |
* | | | | Set default to `expanded` for collapsible repo groups.Florian Zschocke2019-06-151-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the new property `web.collapsibleRepositoryGroups` into the `web` section, close to the list type property. Set the default to be `expanded`, so that the new feature is visible but the list is still the full list like before. Add new value `tree` to the description of the property `web.repositoryListType`.
* | | | | Remove "folding outlines" and sort repositories before subfolders.Florian Zschocke2019-06-153-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove guard rails at the left to get a cleaner look. To make it easier to determine which repositories belong to which folder, display the repositories first, then the subfolder. Decreased indentation a little.
* | | | | Add support nested groups on the Repositories pageFlorian Zschocke2019-06-157-13/+642
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for #725. Also covers #527. This is a squashed commit of the following commits, merging and closing pull request #1267: commit 55fee41769ffab1aff59344fe117d481687aa743 Author: Martin Spielmann <mail@martinspielmann.de> Date: Mon Nov 6 17:19:53 2017 +0100 declared local variable final to fix travis build commit 131e4d14a48c2a3fdce621fa54637de50684d040 Author: Martin Spielmann <mail@martinspielmann.de> Date: Mon Nov 6 14:11:55 2017 +0100 fix formatting (use tab for identation) commit 8da5f6d5967894f157251c320928acdab3a451e7 Author: Martin Spielmann <mail@martinspielmann.de> Date: Mon Nov 6 13:45:39 2017 +0100 Add repositoryListType tree. Addresses #725, 527 and includes #1224 commit 6c061651fb95212ae242dbca06c8d9ef80146201 Merge: f365daa3 40ee9653 Author: Martin Spielmann <mail@martinspielmann.de> Date: Sat Nov 4 13:19:08 2017 +0100 Merge remote-tracking branch 'collapsible/ticket/527' into 725_nested_repos commit f365daa3b1d6be135365f9b11bdece320beabf4e Author: Martin Spielmann <mail@martinspielmann.de> Date: Sat Nov 4 13:10:24 2017 +0100 first working version of tree model
* | | | | collapsible group repositoriesybosy2019-06-155-3/+106
| | | | |
* | | | | Add build dependency on parboiled to fix build of documentation.Florian Zschocke2019-06-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating JaCoCo in commit 23072ffb broke the build of the HTML documentation. As found out by @chirontt, adding parboiled as a build dependency fixes it. Fixes #1220 and closes #1313
* | | | | Escape folder names in JGitUtils to allow special characters. Fixes #999Martin Spielmann2019-06-101-3/+3
| | | | |
* | | | | Fix revLog test that broke due to changes in the hello-world repository.Florian Zschocke2019-06-102-3/+5
| | | | |
* | | | | Create unit tests for special characters in path namesFlorian Zschocke2019-06-103-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a regression test for issue #999. Add directories with '[]' ans '()' in the name to the hello-world repository, so that they can be used in unit tests for repository paths with special characters.
* | | | | Null-safe compare for ticket milestones without due dateFritz Schrogl2019-06-101-2/+14
| | | | |
* | | | | Do not resolve symbolic links to repositories.Florian Zschocke2019-06-102-7/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When symbolic links under the base repository folder point to repositories outside the base repository folder, the forming of relative repository names failed and resulted in NullPointerExceptions. Create the relative path by not following symbolic links, i.e. the link name is taken as is and not resolved to the external path. This also changes the whole `exactPath` method to work on Paths, instead of Files. Fixes #891 and fixes #837.