]> source.dussan.org Git - gitblit.git/log
gitblit.git
23 months agodeps: Update JGit to 4.11.9.201909030838-r and other dependencies
Florian Zschocke [Fri, 11 Nov 2022 11:56:47 +0000 (12:56 +0100)]
deps: Update JGit to 4.11.9.201909030838-r and other dependencies

Update JGit, and also update other dependencies where the 4.11 JGit
version uses newer versions than we do:
commond-codec updated to 1.9
commons-compress updated to 1.15
gson updated to 2.8.2

23 months agobugtraq: Catch exceptions from bugtraq and show message
Florian Zschocke [Fri, 11 Nov 2022 11:14:55 +0000 (12:14 +0100)]
bugtraq: Catch exceptions from bugtraq and show message

Catch all exceptions, and not just IOExceptions, from bugtraq formatter.
If an exception is caught, ignore the bugtraq handling of the commit
message and show the plain message. Way better then not showing anything
just because something broke in bugtraq.

23 months agobugtraq: Fallback to UTF-8 if commit encoding is unsupported
Florian Zschocke [Fri, 11 Nov 2022 11:12:13 +0000 (12:12 +0100)]
bugtraq: Fallback to UTF-8 if commit encoding is unsupported

Reading the encoding of a commit can result in a Unsupported- or
IllegalCharsetException. This happens when for whatever reason the
commit has an encoding recorded that the system doesn't understand.
Instead of completely failing, fallback to UTF-8.

23 months agodeps: Update JGit to version 4.8.0.201706111038-r
Florian Zschocke [Fri, 11 Nov 2022 11:08:01 +0000 (12:08 +0100)]
deps: Update JGit to version 4.8.0.201706111038-r

23 months agoRemove workaround for JGit crashing on 'utf-9' etc
Florian Zschocke [Fri, 11 Nov 2022 10:58:23 +0000 (11:58 +0100)]
Remove workaround for JGit crashing on 'utf-9' etc

Updating JGit fixed the issue that a commit in a repo with an unknown
character set throws an exception. This would crash the RepositoryManager.
The extra handling, which patches JGit classes during runtime is completely
removed.

23 months agoAdd wrapper class to return a default encoding
Jan Vanhercke [Sat, 29 Jul 2017 22:03:05 +0000 (00:03 +0200)]
Add wrapper class to return a default encoding

Unknown encodings may cause gitblit to fail to start. This modification
injects a wrapper class in the JGit internal to fake a valid return value.

23 months agoci: Delete nightly build artefact after testing the container
Florian Zschocke [Mon, 7 Nov 2022 21:59:31 +0000 (22:59 +0100)]
ci: Delete nightly build artefact after testing the container

Leave the artefact until after the container has been built and tested.
In case the test fails the artefact can be still downloaded to analyse
what might have caused the container build or test to fail.

23 months agoUpdate Bugtraq to v0.4
Florian Zschocke [Mon, 7 Nov 2022 21:27:45 +0000 (22:27 +0100)]
Update Bugtraq to v0.4

Sync with upstream @ https://github.com/mstrap/bugtraq

23 months agoMerge branch 'pr-1214' into master
Florian Zschocke [Sun, 6 Nov 2022 13:38:01 +0000 (14:38 +0100)]
Merge branch 'pr-1214' into master

Fix conflict from earlier JGit update to 4.5
Add updated Eclipse and IntelliJ files.

23 months agoFix jgit version to one that is found in Maven Central 1214/head
Florian Zschocke [Sun, 6 Nov 2022 13:35:59 +0000 (14:35 +0100)]
Fix jgit version to one that is found in Maven Central

23 months agoMerge branch 'pr-1213' into master
Florian Zschocke [Sun, 6 Nov 2022 12:46:36 +0000 (13:46 +0100)]
Merge branch 'pr-1213' into master

Fix conflict in updated slf4j version.
Add updated Eclipse and IntelliJ files.

23 months agoAdd missing jetty-xml dependency. 1213/head
Florian Zschocke [Sun, 6 Nov 2022 12:32:29 +0000 (13:32 +0100)]
Add missing jetty-xml dependency.

23 months agoMerge branch 'sshkey_form_feedback' into master
Florian Zschocke [Tue, 1 Nov 2022 18:32:31 +0000 (19:32 +0100)]
Merge branch 'sshkey_form_feedback' into master

This brings back in a change that was implemented in a pull request
from 2017, but got lost in the chaos of multiple pull requests from
intermingling branches.

This does not only provide feedback when a SSH key cannot be parsed,
but it also does so in a way that the warning goes away when a correct
key is added. Admittedly, I have no idea how to properly do this with
a Wicket FeedbackMessage, all I could find on Google was highly
complicated.

Not only does this bring back (or really in) the fix for issue #1226,
but it also fixes #984.

23 months agoReplace key feedback with label instead of FeedbackMessage
Florian Zschocke [Tue, 1 Nov 2022 18:31:45 +0000 (19:31 +0100)]
Replace key feedback with label instead of FeedbackMessage

Since it is a pest to get rid of a Wicket FeedbackMessage in an AJAX target,
change the code to use an extra label that can provide feedback if the
key could not be parsed or was empty.

23 months agoAdd feedback to SSH Key Form. #1226
Martin Spielmann [Sun, 21 May 2017 22:29:08 +0000 (00:29 +0200)]
Add feedback to SSH Key Form. #1226

if key is empty of can not be parsed, form did provide any feedback to
user before

23 months agoFix paths after update of checkout action
Florian Zschocke [Tue, 1 Nov 2022 11:50:29 +0000 (12:50 +0100)]
Fix paths after update of checkout action

The Github 'checkout' action was updated from v1 to v3. But the behaviour
changed between the two which broke this workflow.
The old action would clone other repositories not into the workspace
but parallel to the workspace. The new version does every clone/checkout
relative to the workspace. That means that where previously the
gitblit-docker repository would be cloned in parallel to the workspace
which is gitblit/gitblit, it is now cloned into the gitblit/gitblit
directory path.

So remove all the references to `../gitblit-docker`. The files are in
the current directory now.

23 months agoMerge pull request #1435 from flaix/fix-authority-np
Florian Zschocke [Tue, 1 Nov 2022 00:00:55 +0000 (01:00 +0100)]
Merge pull request #1435 from flaix/fix-authority-np

Fix crash in Gitblit Authority for deleted users

23 months agoauthority: Fix null pointer crash for deleted users 1435/head
Florian Zschocke [Mon, 31 Oct 2022 23:50:14 +0000 (00:50 +0100)]
authority: Fix null pointer crash for deleted users

When a user had a certificate, i.e. an entry in the Gitblit Authority
database, but the user was deleted from the Gitblit database, then the
Authority application crashes upon loading. This patch prevents the
crash. The deleted user is no longer shown in the Authority. But the
database entry still is kept. This should be improved to show deleted
users and give the possibility to delete them from the Authority's
database.

This fixes #1359

23 months agoMerge pull request #1434 from flaix/update-guice
Florian Zschocke [Mon, 31 Oct 2022 22:18:45 +0000 (23:18 +0100)]
Merge pull request #1434 from flaix/update-guice

Update Guice version to 5.1.0

23 months agodeps: Update Guice version to 5.1.0 1434/head
Florian Zschocke [Thu, 27 Oct 2022 21:26:44 +0000 (23:26 +0200)]
deps: Update Guice version to 5.1.0

Update Guice to 5.1.0. This version is compatible with Java 17.
The gitblit patch of the servlet extension was ported to Guice 5.1.0,
too.
The update of Guice requires an update of the Guava version, too.
Thus Guava is updated to 27.0.1-jar.

23 months agoMerge pull request #1433 from flaix/np-fix
Florian Zschocke [Mon, 31 Oct 2022 21:50:43 +0000 (22:50 +0100)]
Merge pull request #1433 from flaix/np-fix

Fix null pointer exception in FileSettings

23 months agofix: Fix null pointer exception in FileSettings 1433/head
Florian Zschocke [Mon, 31 Oct 2022 21:38:06 +0000 (22:38 +0100)]
fix: Fix null pointer exception in FileSettings

Fix a null pointer access in the `toString` method for a freshly created
`FileSettings`.

23 months agoMerge pull request #1430 from flaix/update-actions
Florian Zschocke [Thu, 27 Oct 2022 22:02:50 +0000 (00:02 +0200)]
Merge pull request #1430 from flaix/update-actions

Update workflows due to deprecations in actions

23 months agoci: Replace set-output command with echo to GITHUB_OUTPUT 1430/head
Florian Zschocke [Wed, 26 Oct 2022 17:27:32 +0000 (19:27 +0200)]
ci: Replace set-output command with echo to GITHUB_OUTPUT

The `set-output` command was deprecated. The new way to set an output
parameter for a step is to echo to the file stored in `$GITHUB_OUTPUT`

23 months agoci: Update action versions in nightly build workflow
Florian Zschocke [Wed, 26 Oct 2022 17:13:08 +0000 (19:13 +0200)]
ci: Update action versions in nightly build workflow

Versions are updated for various actions that have a new version which
uses NodeJS 16.

One action has no updated version available yet:
`e1himself/goss-installation-action`
But an issue exists mentioning that it needs an update.

23 months agoci: Update action versions in push build workflow
Florian Zschocke [Wed, 26 Oct 2022 16:03:40 +0000 (18:03 +0200)]
ci: Update action versions in push build workflow

The workflow runs started issuing warnings because NodeJS 12 was
deprecated. Actions need to get updated to newer versions that use
NodeJS 16. This commit updates the `actions/checkout` and the
`actions/setup-java` actions to the latest version in the workflow that
builds on every push.

The new setup-java action requires the distribution to be specified,
since multiple JDK distributions are supported now. We chose Eclipse's
Temurin here which is the successor to AdoptOpenJDK, which we use for
development.

23 months agoci: Build pull requests, too
Florian Zschocke [Thu, 27 Oct 2022 21:33:30 +0000 (23:33 +0200)]
ci: Build pull requests, too

Build pull requests, just like we build on every push.

23 months agoMerge pull request #1429 from flaix/ssh-host-algs
Florian Zschocke [Tue, 25 Oct 2022 16:22:52 +0000 (18:22 +0200)]
Merge pull request #1429 from flaix/ssh-host-algs

Add new SSH host key types

23 months agoSkip SSH host key files that do not exist 1429/head
Florian Zschocke [Mon, 24 Oct 2022 22:00:03 +0000 (00:00 +0200)]
Skip SSH host key files that do not exist

Since we now do not generate a DSA host key file anymore, but keep it in
the list of potential keys so that existing keys still work, it can
happen that the files for DSA (and Ed25519) are getting loaded but they
do not exist. This results in an error in the log.
So instead check if the file exists and only try to load files that
exist. This prevents from errors (which are none) being spammed in the
log.

23 months agoAdd SSH host keys with ECDSA and Ed25519
Florian Zschocke [Mon, 24 Oct 2022 19:10:13 +0000 (21:10 +0200)]
Add SSH host keys with ECDSA and Ed25519

Create new host keys, one with ECDSA and one with Ed25519 algorithms.
For the Ed25519 currently the EdDSA library from i2p is used. This
requires some quirks, compared to a modern BouncyCastle. But the SSHD
library used cannot use BouncyCastle yet for Ed25519.

No DSA key is generated anymore, but we still support existing ones.

23 months agoformat: Cleanup formatting and whitespaces
Florian Zschocke [Sat, 22 Oct 2022 21:53:13 +0000 (23:53 +0200)]
format: Cleanup formatting and whitespaces

23 months agoUpdate BouncyCastle to version 1.69
Florian Zschocke [Sun, 9 Oct 2022 20:16:26 +0000 (22:16 +0200)]
Update BouncyCastle to version 1.69

The version 1.69 is chosen instead of 1.70, because the moxie build
would not download the jars, trying to download `...1.7.jar` instead.

Three class deprecations are fixed. `PEMWriter` and `X509Extension`
are replaced with their drop-in replacements `JcaPEMWriter` and
`Extension`. The `PasswordFinder` deprecation note says that "it is
no longer used". It also was never used in Gitblit's code, so it is
removed from the key par provider class.

23 months agoMerge pull request #1428 from urkle/fix-pt
Florian Zschocke [Sat, 22 Oct 2022 10:51:51 +0000 (12:51 +0200)]
Merge pull request #1428 from urkle/fix-pt

Correct is/is not usage in pt.py to not be used with the value is a literal

2 years agoMerge pull request #1427 from flaix/ssh-upate
Florian Zschocke [Sun, 16 Oct 2022 15:23:48 +0000 (17:23 +0200)]
Merge pull request #1427 from flaix/ssh-upate

Update SSHD to version 1.7.0 and add support for EdDSA user keys

2 years agoCorrect is/is not usage in pt.py to not be used with the value is a literal 1428/head
Edward Rudd [Mon, 10 Oct 2022 21:44:36 +0000 (17:44 -0400)]
Correct is/is not usage in pt.py to not be used with the value is a literal

- new python 3 versions warn/errors about this usage

2 years agoUpdate dependency MINA SSHD to version 1.7.0 1427/head
Florian Zschocke [Sat, 8 Oct 2022 20:22:54 +0000 (22:22 +0200)]
Update dependency MINA SSHD to version 1.7.0

2 years agoupgrade to sshd 1.6.0, add eddsa dependency, upgrade jgit to 4.1.2
ricardop [Wed, 3 Jan 2018 15:09:27 +0000 (16:09 +0100)]
upgrade to sshd 1.6.0, add eddsa dependency, upgrade jgit to 4.1.2

(cherry picked from commit d8fbdda2ab3fa48e92bdf37399d4b75c48409c5c@rpardini:master)

# Conflicts:
# .classpath
# build.moxie
# src/test/java/com/gitblit/tests/SshUnitTest.java

2 years agoMerge branch 'oddeirik-disable-client-certs' into master
Florian Zschocke [Sun, 14 Aug 2022 12:46:27 +0000 (14:46 +0200)]
Merge branch 'oddeirik-disable-client-certs' into master

2 years agoUse existing setting but with new values
Florian Zschocke [Sun, 14 Aug 2022 12:45:58 +0000 (14:45 +0200)]
Use existing setting but with new values

Instead of adding another setting and having to explain how the new one
and the existing `requireClientCertificates` setting are interdependent,
let's use the existing setting and add new values.

It is changed from a boolean to a string, with the values `required`,
`optional` and `disabled`. To keep backward compatibility with the old
values, the `true` value is mapped to `required` and the `false` value
is mapped to `optional`.

2 years agoMerge branch 'disable-client-certs' of github.com:oddeirik/gitblit into oddeirik...
Florian Zschocke [Sun, 14 Aug 2022 12:10:09 +0000 (14:10 +0200)]
Merge branch 'disable-client-certs' of github.com:oddeirik/gitblit into oddeirik-disable-client-certs

2 years agoMerge branch 'felazuris-fixpermdisplay' into master
Florian Zschocke [Sun, 7 Aug 2022 12:27:04 +0000 (14:27 +0200)]
Merge branch 'felazuris-fixpermdisplay' into master

This pulls in the rebased branch from PR #1100.

2 years agoRewrite fix without the additional List
Florian Zschocke [Sun, 7 Aug 2022 12:26:16 +0000 (14:26 +0200)]
Rewrite fix without the additional List

This also removes the additional Set. What changes is that the order of
the repositories is kept, but the resulting list will have user and team
permissions intertwined.

2 years agoAdd init test for getting repository permissions
Florian Zschocke [Sun, 7 Aug 2022 12:09:27 +0000 (14:09 +0200)]
Add init test for getting repository permissions

2 years agofix user effective permission display if users is in multiple groups with different...
kaspars.kurms [Mon, 11 Jul 2016 09:55:21 +0000 (12:55 +0300)]
fix user effective permission display if users is in multiple groups with different permissions

2 years agoMerge branch 'QuentinC-fix-tab-escape' into master
Florian Zschocke [Tue, 2 Aug 2022 20:10:58 +0000 (22:10 +0200)]
Merge branch 'QuentinC-fix-tab-escape' into master

The contribution branch was rebased to current master.
This should close #1065 as merged.

2 years agoAdd more tests for tab expansion
Florian Zschocke [Tue, 2 Aug 2022 19:54:08 +0000 (21:54 +0200)]
Add more tests for tab expansion

These show more clearly what the code is supposed to do.

2 years agoFix: if statement without curly braces
Quentin [Sun, 24 Apr 2016 21:29:09 +0000 (23:29 +0200)]
Fix: if statement without curly braces

2 years agoTab to space conversion testing
Quentin [Sun, 24 Apr 2016 13:49:07 +0000 (15:49 +0200)]
Tab to space conversion testing

2 years agoChanged tab to space conversion
Quentin [Mon, 18 Apr 2016 17:31:42 +0000 (19:31 +0200)]
Changed tab to space conversion

Tabs are not always 4 spaces large. It completes the line to the 4th
character.

2 years agoCreate SECURITY.md
Florian Zschocke [Mon, 20 Jun 2022 13:16:56 +0000 (15:16 +0200)]
Create SECURITY.md

This closes #1418

2 years agodoc: Merge release 1.9.3 info into releases.moxie
Florian Zschocke [Sat, 9 Apr 2022 17:29:17 +0000 (19:29 +0200)]
doc: Merge release 1.9.3 info into releases.moxie

2 years agoci: Add debug logging to nightly build
Florian Zschocke [Sat, 9 Apr 2022 16:28:32 +0000 (18:28 +0200)]
ci: Add debug logging to nightly build

For some reason the secret gate doesn't work and the main Gitblit
repo also attempts to deploy the nightly to Docker which must fail.

2 years agopages: Fix link for GitExtension, which moved to Github
Florian Zschocke [Sat, 9 Apr 2022 16:17:43 +0000 (18:17 +0200)]
pages: Fix link for GitExtension, which moved to Github

2 years agodoc: Fix download link for fedclient ad api tar
Florian Zschocke [Sat, 9 Apr 2022 16:10:38 +0000 (18:10 +0200)]
doc: Fix download link for fedclient ad api tar

It was still pointing to Google Code.

This closes #1408

2 years agodoc: Fix links for dependencies that moved from Google Code
Florian Zschocke [Sat, 9 Apr 2022 16:09:51 +0000 (18:09 +0200)]
doc: Fix links for dependencies that moved from Google Code

2 years agoMerge branch '1410-vulnerability-userdb' into master
Florian Zschocke [Mon, 14 Mar 2022 19:09:20 +0000 (20:09 +0100)]
Merge branch '1410-vulnerability-userdb' into master

Merge fix branch from 1.9 mainenance line into
master branch.

2 years agofix: Fix StoredUserConfig not escaping control characters 1411/head
Florian Zschocke [Sun, 13 Mar 2022 17:03:17 +0000 (18:03 +0100)]
fix: Fix StoredUserConfig not escaping control characters

The `StoredUserConfig` only escaped the escape character, i.e. backslash.
But it does not escape control characters like tab or newline. This
introduces a vulnerability where an attacker can create new entries
in their user account and create new accounts.
In addition, other characters are also not properly handled. Field values
with a comment character need to be quoted. This only happens for the
`#` character and only when the value starts with it. Also the quote
is note escaped in values.

This change completely rewrites the `escape` method of `StoredUserConfig`.
It takes care of properly escaping characters that need escaping for the
git configuration file format.

This fixes #1410

2 years agofix: Fix StoredUserConfig handling null subsections
Florian Zschocke [Sun, 13 Mar 2022 16:48:19 +0000 (17:48 +0100)]
fix: Fix StoredUserConfig handling null subsections

Te `StoredUserConfig` did not handle sections without a subsection.
When the subsection did not exist, i.e. was `null`, then the subsection
name would be set to the string "null". This is not how the config file
format works. It should create a `[SECTIONNAME]` entry instead.

This fix handles a `null` subsection correctly, by handling it as a
section without a subsection.

2 years agotest: Add exploit test for config user service
Florian Zschocke [Sat, 12 Mar 2022 19:59:27 +0000 (20:59 +0100)]
test: Add exploit test for config user service

Add unit tests for exploiting the email address or display name
in the config user service by using newlines in the values.

2 years agoReset build identifiers for next point release cycle
Florian Zschocke [Sat, 12 Mar 2022 18:50:48 +0000 (19:50 +0100)]
Reset build identifiers for next point release cycle

2 years agoide: Adjust IDE project files to javax.mail 1.5.6
Florian Zschocke [Sun, 6 Feb 2022 19:01:28 +0000 (20:01 +0100)]
ide: Adjust IDE project files to javax.mail 1.5.6

2 years agoUpdate javax.mail to 1.5.6
paladox [Sat, 18 Mar 2017 15:46:12 +0000 (15:46 +0000)]
Update javax.mail to 1.5.6

2 years agoMerge branch 'pr-1219' into master
Florian Zschocke [Sun, 6 Feb 2022 18:05:16 +0000 (19:05 +0100)]
Merge branch 'pr-1219' into master

This merges rebased and enhanced pull request #1219

2 years agoci: Remove Java 7 build
Florian Zschocke [Sun, 6 Feb 2022 14:25:36 +0000 (15:25 +0100)]
ci: Remove Java 7 build

2 years agobuild: Comment out option used for Java 7
Florian Zschocke [Sun, 6 Feb 2022 14:25:05 +0000 (15:25 +0100)]
build: Comment out option used for Java 7

2 years agodoc: Update documentation for new Java 8 minimum
Florian Zschocke [Sun, 6 Feb 2022 14:24:33 +0000 (15:24 +0100)]
doc: Update documentation for new Java 8 minimum

2 years agoUpdate readme for new min java version
paladox [Sat, 18 Mar 2017 19:18:18 +0000 (19:18 +0000)]
Update readme for new min java version

2 years agoBump min java support to 1.8
paladox [Sat, 18 Mar 2017 19:17:34 +0000 (19:17 +0000)]
Bump min java support to 1.8

Fixes #1218

2 years agoci: Transition to ICO image labels
Florian Zschocke [Sun, 6 Feb 2022 14:07:14 +0000 (15:07 +0100)]
ci: Transition to ICO image labels

2 years agoci: Allow to force build a nightly version
Florian Zschocke [Sun, 14 Nov 2021 11:03:46 +0000 (12:03 +0100)]
ci: Allow to force build a nightly version

Enable a switch for manual workflow triggering that overrides the check
if a new commits were made since the last build. If the input is set to
'true', a new build is run even when no new commits are present.

This is mainly so that changes to the gitblit-docker repo can be included
in builds. This could also be automated in the workflow, if need be.

2 years agoci: Test nightly docker image with Goss before pushing to registry
Florian Zschocke [Sat, 13 Nov 2021 22:32:48 +0000 (23:32 +0100)]
ci: Test nightly docker image with Goss before pushing to registry

2 years agoci: Add workflow for a nightly build of docker image
Florian Zschocke [Fri, 12 Nov 2021 11:58:24 +0000 (12:58 +0100)]
ci: Add workflow for a nightly build of docker image

2 years agoReadme: Fix link to nightly docker image
Florian Zschocke [Sat, 5 Feb 2022 16:50:03 +0000 (17:50 +0100)]
Readme: Fix link to nightly docker image

The link to the nightly docker images points to the actual image layer,
which is removed when a new nightly is pushed.
Instead, we should point to the images page, filtering on the tag 'nightly'.

2 years agoReset build identifiers for next minor release cycle
Florian Zschocke [Sat, 5 Feb 2022 15:51:19 +0000 (15:51 +0000)]
Reset build identifiers for next minor release cycle

2 years agoPrepare 1.9.2 release v1.9.2
flaix [Sat, 5 Feb 2022 15:27:55 +0000 (15:27 +0000)]
Prepare 1.9.2 release

2 years agosite: Fix awful HTML indentation
Florian Zschocke [Thu, 3 Feb 2022 19:25:45 +0000 (20:25 +0100)]
site: Fix awful HTML indentation

2 years agosite: Old packages moved from Bintray to Cloudsmith
Florian Zschocke [Thu, 3 Feb 2022 19:25:24 +0000 (20:25 +0100)]
site: Old packages moved from Bintray to Cloudsmith

Since Bintray seized operation, the packages for versions 1.4.0 - 1.8.0
have been uploaded to Cloudsmith. Adjust the links appropriately.

An attribution is added to comply with Cloudsmith's OSS hosting policy.

2 years agobuild: Determine release version with simple grep
Florian Zschocke [Thu, 13 Jan 2022 17:19:14 +0000 (18:19 +0100)]
build: Determine release version with simple grep

To determine what the release version is to be, use a simple grep over
the moxie.build file and cut off the `-SNAPSHOT` part. The moxie
tag command doesn't do anything else, either. But the problem is that
when using the moxie tag command on the release branch, where the
version has already been set to a release version, it would create
a second release version, like so: 1.9.2-1.

2 years agobuild: Allow for updating an existing draft release
Florian Zschocke [Thu, 16 Dec 2021 22:46:28 +0000 (23:46 +0100)]
build: Allow for updating an existing draft release

When creating a release draft and uploading assets, provision for the case
that a draft release already exists. In that case, instead of creating a
release, the existing release (changelog) is edited and the assets are
deleted before the new built ones are uploaded.

This commit also introduces the `${gh.repo}` property in build.xml,
so that the Github project could be chosen dynamically. Not really needed,
to be honest, but, yeah, whatever.

2 years agobuild: Add target to determine and report release version
Florian Zschocke [Thu, 16 Dec 2021 22:41:42 +0000 (23:41 +0100)]
build: Add target to determine and report release version

2 years agoBuild: create macro for creating the release process script
Florian Zschocke [Thu, 30 Jan 2020 20:47:12 +0000 (21:47 +0100)]
Build: create macro for creating the release process script

Refactor the creation of the release process script, from
`release.template` into a `macrodef`.
Add a new target `releaseScript`, so that the release script can be
created after the `tagRelease` target was run.
This is helpful if the `tagRelease` target is run by a different,
earlier process than the actual release creation process.

2 years agodoc: Update release notes
Florian Zschocke [Fri, 10 Dec 2021 13:14:34 +0000 (14:14 +0100)]
doc: Update release notes

2 years agoUpdate japanese translation
Takehide Morimoto [Tue, 27 Oct 2020 01:17:05 +0000 (10:17 +0900)]
Update japanese translation

2 years agoDetect and report if running in container
Florian Zschocke [Thu, 9 Dec 2021 23:10:04 +0000 (00:10 +0100)]
Detect and report if running in container

To help with analysis, try to detect if the instance is running inside
a container. Some containers are detected, but this is probably not
exhaustive. At least a Docker container should be detectable.
Report in the runtime manager to the log if a container was detected.

2 years agorun: Put variables in quotes in shell scripts
Florian Zschocke [Thu, 9 Dec 2021 20:34:17 +0000 (21:34 +0100)]
run: Put variables in quotes in shell scripts

2 years agoreadme: Add shields for license and nightly docker date
Florian Zschocke [Tue, 7 Dec 2021 21:01:04 +0000 (22:01 +0100)]
readme: Add shields for license and nightly docker date

2 years agopages: Fix repo-relative reference links in markdown docs
Florian Zschocke [Mon, 6 Dec 2021 20:03:04 +0000 (21:03 +0100)]
pages: Fix repo-relative reference links in markdown docs

As with explicit links, also for reference links in markdown documents
which point to repository-relative files the links are broken. They do
not take the path to the repository into account.
This fix is related to commit b23269 which fixed issue #1358
for explicit links.

2 years agoMerge branch 'fix-864' into master
Florian Zschocke [Sat, 4 Dec 2021 14:15:50 +0000 (15:15 +0100)]
Merge branch 'fix-864' into master

Merge fix for issue #864.

2 years agobug: Fix double encoding links in Markdown/Wiki pages
Florian Zschocke [Sat, 4 Dec 2021 14:05:58 +0000 (15:05 +0100)]
bug: Fix double encoding links in Markdown/Wiki pages

When parsing Markdown or Wiki pages, links get URL encoded. This happened
twice for links to other documents. Once explicitly and once by Wicket
when it creates a `urlFor` the page. That results in multi-byte
characters getting percent escaped, and then the percent character again
getting percent escaped.
The explicit encoding looks like a forgotten left over, so it gets
removed from the code. The Wicket encoding is smarter anyways, knowing
what is path and what is parameter.

This fixes #864.

2 years agoAdd tests for MarkupProcessor
Florian Zschocke [Thu, 25 Nov 2021 23:29:56 +0000 (00:29 +0100)]
Add tests for MarkupProcessor

2 years agodeps: Update to Jetty 9.2.30.v20200428
Florian Zschocke [Thu, 25 Nov 2021 15:59:43 +0000 (16:59 +0100)]
deps: Update to Jetty 9.2.30.v20200428

This closes #1390

2 years agoUpdate contributing guidelines
Florian Zschocke [Thu, 2 Dec 2021 21:05:50 +0000 (22:05 +0100)]
Update contributing guidelines

And, link to the contributing guidelines from the Readme.

2 years agodocs: Update release notes
Florian Zschocke [Thu, 25 Nov 2021 15:48:45 +0000 (16:48 +0100)]
docs: Update release notes

2 years agodocs: Update docker URL
Florian Zschocke [Thu, 25 Nov 2021 14:28:18 +0000 (15:28 +0100)]
docs: Update docker URL

Update the URL to the Gitblit docker image to point to the
`gitblit/gitblit` repository, which I now consider the official
Docker repository.
Also link to the Docker images on the main page.

2 years agodocs: Change Ohloh link to Open Hub
Florian Zschocke [Thu, 25 Nov 2021 13:48:18 +0000 (14:48 +0100)]
docs: Change Ohloh link to Open Hub

Ohloh got acquired by Synopsis and is nor Open Hub.
Change the Ohloh link in the links menu to point to Open Hub.

2 years agoChange bugtraq link for issues to Github
Florian Zschocke [Thu, 25 Nov 2021 16:17:31 +0000 (17:17 +0100)]
Change bugtraq link for issues to Github

2 years agoFixes external links broken in markdown rendering (#1392)
TomaszSzt [Thu, 18 Nov 2021 14:38:54 +0000 (15:38 +0100)]
Fixes external links broken in markdown rendering (#1392)

* This commit fixes what was broken in commit
https://github.com/gitblit/gitblit/commit/b23269acc0f460f583311c679d751925b8402563
due to #1358 issue

2 years agoFix NPE
Tom [Wed, 23 Nov 2016 17:30:48 +0000 (18:30 +0100)]
Fix NPE

Although it seems strange to have a RefModel with a referenced object
but a null Ref, Gitblit uses such RefModels for instance in
JGitUtils.getNotesOnCommit().

Be careful to do something sensible when that Ref is null.

2 years agoIssue #1011: do not serialize JGit commit objects
Tom [Wed, 26 Oct 2016 20:49:56 +0000 (22:49 +0200)]
Issue #1011: do not serialize JGit commit objects

JGit commit objects are a recursive data structure; they have links to
their parent commits. Serializing a JGit commit will try to recursively
serialize all reachable ancestors as faras they have been loaded. If
that ancestor chain is too long, a StackOverflowError is thrown during
Wicket's page serialization if a page has a reference to sucha JGit
commit.

Fixed by making sure that pages o not contain references to JGit
commits. Use the (existing) wrapper object RepositoryCommit instead.

* RepositoryCommit has a transient reference to the JGit commit and
  reads the commit from the repository upon de-serialization.
* RefModel is a similar case (JGit tags/branches may also have links
  to the commits they point to). Solved a bit differently by making it
  a pure data object by transferring the interesting data from the JGit
  object in the constructor.
* Change DataViews instantiated with RevCommit to use RepositoryCommit
  instead.
* Change inner anonymous DataViews to ensure they do not have a
  synthesized field referencing the "allRefs" map. Such a synthesized
  field would also get serialized, and then serialize JGit commits
  again.

Finally, remove non-transient logger instances in Wicket classes. Those
might lead to NotSerializableException.

These StackOverflowErrors have been reported in several places since
2014:

* https://groups.google.com/forum/#!topic/gitblit/GH1d8WSlR6Q
* https://bugs.chromium.org/p/gerrit/issues/detail?id=3316
* https://groups.google.com/d/msg/repo-discuss/Kcl0JIGNiGk/0DjH4mO8hA8J
* https://groups.google.com/d/msg/repo-discuss/0_P6A3fjTec/2kcpVPIUAQAJ
* https://github.com/gitblit/gitblit/issues/1011
* https://github.com/tomaswolf/gerrit-gitblit-plugin/issues/21

2 years agoMerge branch pr1343 into master
Florian Zschocke [Wed, 3 Nov 2021 19:18:44 +0000 (20:18 +0100)]
Merge branch pr1343 into master

Merge the edited PR #1343 from @vhot2076. This merge only includes the
russian translation.

I could not reproduce the layout error, so a new PR with more information
should be created if the problem still exists. This merge closes #1343