summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* doc: Update SECURITY.md to include Github's reporting mechanismHEADmasterFlorian Zschocke2024-05-201-1/+4
|
* Merge pull request #1461 from flaix/depupdFlorian Zschocke2023-10-314-56/+56
|\ | | | | Update dependencies
| * dep: Update Apache Tika to 1.28.5Florian Zschocke2023-10-313-5/+5
| |
| * dep: Update slf4j to 1.7.36 and switch from log4j1 to reload4jFlorian Zschocke2023-10-313-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace log4j 1.2.17 with reload4j 1.2.25. log4j 1.x was caught in the fire of the Log4Shell vulnerability, even though the 1.x line was not affected by the vulnerability. Still, this looks bad when it shows up in security scanners even though it doesn't mean it has the Log4Shell vulnerability. Switch to reload4j instead. This is a drop-in replacement of log4j. Actually, it is log4j rebooted by the same author. The reload4j 1.x line fixes security issues that have since surfaced. At the same time we update to the latest slf4j version, which also switched to reload4j for the log4j12 line.
| * dep: Update JSoup to 1.16.2Florian Zschocke2023-10-314-9/+9
| | | | | | | | | | | | | | Update JSoup to version 1.16.2. This requires renaming `Whitelist` to `Safelist`, because the class name was changed in version 1.15.1 in a breaking change.
| * dep: Update mina-core, commons-compress and guavaFlorian Zschocke2023-10-313-27/+27
|/ | | | | Update dependencies: Mina Core, Guava and commons-compress. These don't need any other adjustments.
* Merge pull request #1457 from flaix/fixLogStringsFlorian Zschocke2023-10-2410-130/+95
|\
| * Update some outdated, and sometimes wrong, logger format stringsFlorian Zschocke2023-10-2410-130/+95
|/
* Merge pull request #1456 from flaix/sha256Florian Zschocke2023-10-152-31/+82
|\ | | | | Add SHA-256 hash calculation to StringUtils
| * Add function to calculate SHA-256 has sum to StingUtils.Florian Zschocke2023-10-152-0/+28
| |
| * Refactor StringUtils to provide message digest in common functionFlorian Zschocke2023-10-151-31/+54
| | | | | | | | | | | | | | | | | | | | The calculation of a MD5 and SHA-1 sum are all message digest implementations. Instead or replicating the same code over and over again, provide a common function for message digest calculation which can do this for different algorithms based on the algorithm name passed as a parameter. Then replace the existing `getMD5` and `getSHA1` functions by calling the common function passing the respective algorithm name.
* | Merge pull request #1455 from losiki/message-formatFlorian Zschocke2023-10-153-5/+5
|\ \ | |/ |/| Fix single quotes in MessageFormat patterns.
| * Fix single quotes in MessageFormat patterns.Egor Shchegolkov2023-10-143-5/+5
|/
* Merge pull request #1454 from flaix/update-clientsFlorian Zschocke2023-10-1314-24/+24
|\
| * Update Git clients list on empty repository pageFlorian Zschocke2023-10-1214-24/+24
|/ | | | | | | | | | | | The page shown for an empty repository lists suggestions for Git clients, mostly GUI ones, and links to their web pages. The TortoiseGit client entry is removed since the URL is no longer valid. The excellent client Fork is added to the closed source clients section. This commit also cleans up some other entries, fixing broken tags, escaping ampersands and removing outdated or wrong information.
* Merge pull request #1452 from flaix/chinese-forkFlorian Zschocke2023-10-121-17/+17
|\ | | | | Improve Chinese translation of "fork"
| * Improve Chinese translation of "fork"Florian Zschocke2023-10-091-17/+17
|/ | | | | | | The currently used translation of "fork" is ambiguous, using the same word as for "branch". Fixes #1448
* build: Keep CNAME file when updating gh-pages branchFlorian Zschocke2023-04-061-2/+6
| | | | | | | The CNAME file on the gh-pages branch is used to link the gh-pages to the gitblit.com domain. So it needs to stay around when updating the gh-pages branch with new documentation pages. This is possible since Moxie 0.10.0 with a new `keep` sub-element.
* Update Moxie to version 0.10.0Florian Zschocke2023-04-033-6/+6
| | | | This provides changes and new commands used for release.
* doc Add some basic steps to the "contributing" section of ReadmeFlorian Zschocke2023-04-031-0/+7
|
* doc: Update release notesFlorian Zschocke2023-04-031-13/+60
|
* doc: Adjust current stable release infoFlorian Zschocke2023-04-031-2/+2
| | | | That was not updated after the 1.9.3 hotfix release.
* doc: Cleanup Google Code links and obsolete design descriptionFlorian Zschocke2023-04-032-8/+4
| | | | | | | | | | | Replace the links in NOTICE to the closed down Google Code (code.google.com) with their Github counterparts where the projects moved to. Gitblit used to download dependencies upon first start. This has since long been changed and everything is bundled with Gitblit now. So reflect this in the design.mkd document, which still said they would be downloaded.
* doc: Replace Clippy with clipboard.js in design doc and NOTICEFlorian Zschocke2023-04-032-2/+9
|
* doc: Fix link to log4j.properties on Github in setup_GOFlorian Zschocke2023-04-032-2/+5
|
* Merge pull request #1442 from glmdev/patch-1Florian Zschocke2023-04-034-5/+5
|\ | | | | Fix Moxie URL in build.xml (#1441)
| * Adjust URLs to gitblit.github.io to point to gitblit-org.github.ioFlorian Zschocke2023-04-033-3/+3
| | | | | | | | | | Adjust other references to the old 'gitblit' organisation on Github to point to the new 'gitblit-org' organisation.
| * Fix Moxie URL in build.xml (#1441)Garrett Mills2023-02-081-2/+2
|/
* Merge pull request #1425 from srp-gmbh/jenkins_access_tokenFlorian Zschocke2022-12-091-1/+5
|\ | | | | Add support for Jenkins Git plugin access token, fixes #1423
| * Add support for Jenkins access token fixes #1423Tino Desjardins2022-09-031-1/+5
| |
* | Adjust path after moving from "gitblit" to "gitblit-org" on GithubFlorian Zschocke2022-12-0919-37/+36
| |
* | fix: Fix broken pushes to ticketsFlorian Zschocke2022-12-073-8/+10
| | | | | | | | | | | | | | The update of JGit broke pushes to tickets. The ReceiveCommand now requires all three arguments, oldId, newId and name, to be not null. The ticket code handling pushes to tickets left name and old id as null in certain cases. This is fixed by always providing values.
* | fix: Fix incorrect text being copied by copy button on tickets pageFlorian Zschocke2022-12-061-1/+1
| | | | | | | | The merge step for using `pt` added the wrong text to the copy button.
* | Add french version of Empty Repository pageFlorian Zschocke2022-12-051-0/+60
| | | | | | | | Donated by @piradix
* | fix: Fix broken _de language fileFlorian Zschocke2022-12-051-2/+2
| | | | | | | | | | This fixes incorrect encodings in the _de language file which makes the pages crash.
* | fix: Correct misaligned images in primary repository URL displayFlorian Zschocke2022-12-051-2/+2
| | | | | | | | | | | | Adding style element `max-width:inherit` as suggested by @piradix, which makes the access restriction icon be part of the URL box again. This fixes #1437
* | Merge branch 'clipboardjs' into masterFlorian Zschocke2022-12-0312-50/+308
|\ \ | | | | | | | | | This replaces clippy.sfw with Javascript for issue #1241
| * | Remove clippy.swf and update documentationFlorian Zschocke2022-12-033-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | The `clippy.swf` Flash program is no longer needed and can be deleted. The configuration property is now incorrectly named, but we keep the name and update the documentation. Maybe it could be completely deleted one day, when the clipboard.js solution is known to work and be universally supported.
| * | Replace SWF clippy with clipboard.js on ticket pageFlorian Zschocke2022-12-032-19/+12
| | | | | | | | | | | | | | | The ticket page also has some copy-to-clipboard buttons, which get updated to work with JS instead of SWF.
| * | Add a "Copied" tooltip to the copy-to-clipboard buttonFlorian Zschocke2022-12-035-12/+256
| | | | | | | | | | | | | | | | | | | | | This is not the ideal version, since the height is too low for the tooltip used for the drop-down menus. Probably has something to do with the container or something. But at least something is there now, even if not the most beautiful.
| * | Replace SWF clippy with clipboardjs on repository pageFlorian Zschocke2022-11-204-25/+35
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shockwave Flash is dead. But Gitblit still uses it to copy the repository URLs to the clip board. Which doesn't work anymore since no browser uses Flash anymore, so this has degraded disgracefully. Instead, we can use JavaScript to copy directly to the clipboard, now that there are APIs for it. So replace the use of clippy.swf on the repository page with clipboard.js[1]. This right now only has the functionality to copy to clipboard but now visual feedback, yet. This addresses GH issue #1241. [1] https://clipboardjs.com
* | Fix issue with not serialisable ed25519 SSH keysFlorian Zschocke2022-11-162-1/+32
| | | | | | | | | | | | | | | | | | Adding Ed25519 keys brings the problem that with the library currently used, the PublicKey instance of that key is not serialisable. This results in an exception when wicket tries to cache the UsersPage. So change the SshKeysPanel so that the PublicKey object is removed from the `SshKey` when the panel is detached. It can be regenerated from the raw key data.
* | deps: Update various dependencies that had known CVEsFlorian Zschocke2022-11-144-65/+57
| |
* | deps: Update Jetty to version 9.4.49.v20220914Florian Zschocke2022-11-134-47/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates Jetty to the latest 9.x version as of writing. The 9.x is still running on Java 8. The update needs two code changes. `SessionManager` was replaced with `SessionHandler`. This was documented in the Jetty documentation. Adding the `GitblitContext` to the `WebAppContext` will result in two instances getting created, because the code was changed that prevents instantiation the same listener class multiple times. (The second time is when the web.xml is read.) Instead, it must be added to the servlet handler of the `WebAppContext`. This results in properly adhering to the changed internal startup flow. Updating Jetty also resolves #1409.
* | fix: Fix jetty crashing when redirecting HTTP to HTTPSFlorian Zschocke2022-11-111-1/+1
| | | | | | | | | | | | | | | | | | Jetty 9.3 changed the `setHandler` on the ServletContextHandler to no longer automatically detect SecurityHandler, SessionHandler, etc. It simply passes on the setHandler request to the ContextHandler class (with a warning logged). So make sure to explicitly use the method `setSecurityHandler` to set the ContraintSecurityHandler responsible for the http -> https redirection.
* | Merge branch 'jvanhercke-jgit-default-charset' into masterFlorian Zschocke2022-11-116-76/+79
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This branch mostly records the commit from PR #1253, so we have it in the code base. The changes are immediately undone, because the update to JGit version 4.8.0, as proposed in PR #1252, renders the whole patching of JGit obsolete. The update is done now, against reservations in that PR, because we guess that potential issues have been found and fixed by now. JGit is updated to the last version on the major version 4 line: 4.11.9. Also, since upstream JGit is at v6 by now, more updates will have to happen later on anyways. To make the protection against illegal character sets complete, an additional fix for Bugtraq is included, that protects against exceptions from bugtraq should it encounter an `encoding` that cannot be handled.
| * | deps: Update JGit to 4.11.9.201909030838-r and other dependenciesFlorian Zschocke2022-11-113-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * | bugtraq: Catch exceptions from bugtraq and show messageFlorian Zschocke2022-11-111-3/+3
| | | | | | | | | | | | | | | | | | | | | 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.
| * | bugtraq: Fallback to UTF-8 if commit encoding is unsupportedFlorian Zschocke2022-11-111-1/+15
| | | | | | | | | | | | | | | | | | | | | 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.
| * | deps: Update JGit to version 4.8.0.201706111038-rFlorian Zschocke2022-11-113-13/+18
| | |