summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Property bundle: Fix various errors with escapesFlorian Zschocke2021-10-213-21/+21
| | | | | | | | | | Double escaped backslashes, wrongly escaped unicode codes, broken escaped newlines.
| * Property bundle: Fix incorrect property keysFlorian Zschocke2021-10-218-12/+10
| | | | | | | | | | | | | | Some property keys had typos. There is a `gb.ticketStatus` and a `gb.ticketState`. Neither is used anywhere in the code, but only the former is defined in the default file. So only use `gb.ticketStatus`.
| * Escape non-ASCII characters in the GitBlitWebApp_pt_BR.properties fileFlorian Zschocke2021-10-211-220/+219
| | | | | | | | If keeps acting up when trying to stage parts of it. I hope this fixes that.
| * fix: Remove trailing spaces from property bundle filesFlorian Zschocke2021-10-2114-83/+83
| |
| * fix: Remove duplicate property keys from properties filesFlorian Zschocke2021-10-2114-27/+12
|/ | | | | | | | | | Some property keys were duplicated, mostly `status`, `permission` and `comment`. The problem with `gb.comment` is, that it is used in two different locations in two different meanings. One as a verb, the second as a noun. Which makes no difference in English, but other languages. The solution is that the second key is renamed to `gb.sshKeyComment`. The code is adjusted accordingly.
* Merge pull request #1379 from flaix/fix-no-propertiesFlorian Zschocke2021-10-2115-7/+197
|\ | | | | Fix norwegian properties file
| * Add a unit test to check if the resource bundle can be loadedFlorian Zschocke2021-10-2015-6/+196
| | | | | | | | | | | | | | | | | | To prevent that we have a resource file in a resource bundle broken and not loading undiscovered for years, add a unit test that will load the resource properties file for each of the languages. In order to check if the file was loaded and the bundle mechanism didn't fall back on the default, a new property key is added to each language file, solely for the purpose to be checked in the unit test.
| * Fix a wrong unicode escape in the Norsk language properties fileFlorian Zschocke2021-10-201-1/+1
|/ | | | This fixes #834
* Merge pull request #1370 from Zwixx/masterFlorian Zschocke2021-07-218-24/+52
|\ | | | | | | | | | | | | This commit merges the pull request from Zwixx, with additional changes via a separate Zwixx-fix-cmds branch. Closes #1370
| * Fix output of migrate-/reindex-tickets bash scriptsFlorian Zschocke2021-07-212-10/+10
| | | | | | | | | | | | | | | | Fix the output of the help texts in the reindex-tickets and reindex-tickets bash scripts. For one the double quotes are unnecessary and get printed out, too. Secondly, an empty line needs a `echo.`. A simple `echo` will prin the state of the echo setting, i.e. `Echo is enabled (1)` or something similar.
| * Set local variable visibility in batch scriptsFlorian Zschocke2021-07-213-1/+9
| | | | | | | | | | | | | | | | | | Use SETLOCAL in batch scripts to restrict the visibility of variables that are set in the script to the script execution. Otherwise the variables will also be set in the calling shell. That is not a problem when a script is executed by double clicking it in Windows Explorer. But now that the scripts are changed so that they can be called on the command line from other folders, they should also no clutter the calling environment.
| * Adjust remaining CMD scripts to use Gitblit home path.Florian Zschocke2021-07-213-2/+11
| | | | | | | | | | Use the path of the script for the Gitblit home path in the remaining batch scripts, too, to make it possible to call them from any other folder.
| * Add this into the install/uninstall and reindex of the service tooZwixx2021-07-213-9/+13
| |
| * Use full path to Gitblit directory in batch scriptsZwixx2021-07-212-2/+9
|/ | | | | | | | In order to call the Windows batch scripts on the command line from a different folder, the path to the files in the Gitblit directory needs to be explicitly stated in the Java command. Otherwise the JAR files or data directory are not found as they would be searched in the current directory.
* Fix: Make CPU hog fix Java 7 compatibleFlorian Zschocke2021-07-141-7/+22
| | | | | | | | The last fix for the stored config merged from Curly060 used Java8-isms. In order to be able to include this fix in the next release, which will be for 1.9, I have converted this to be compatible with Java 7. Also, a file header was added to place it under APL.
* bugfix: fix CPU hog bug in config saveIngo Lafrenz2021-07-052-1/+173
|
* Merge pull request #1367 from YMNNs/masterFlorian Zschocke2021-05-151-269/+310
|\ | | | | Update simplified Chinese translation
| * Update zh_CN translationYMNNs2021-05-031-269/+310
|/ | | Updated simplified Chinese translation and added missing entries. This translation is now 100% completed.
* docs: Change Ohloh link to Open HubFlorian Zschocke2020-11-231-1/+1
| | | | | | | Ohloh got acquired by Synopsis and is nor Open Hub. Change the links for the tiny widget to point to Open Hub. Closes #1356
* docs: Release notes updateFlorian Zschocke2020-11-161-3/+7
|
* fix: Also parse exp links in MD pagesFlorian Zschocke2020-11-161-0/+8
| | | | | | Add a link parser also for `ExpLinks` because we need to escape paths to files in subfolders. This closes #1358
* 📖 docs: Add missing change to 1.8.0 release notesFlorian Zschocke2020-11-101-0/+1
| | | | Add that issue 879 was fixed in release 1.8.0
* Merge branch 'fix-raw-slash-branch' into masterFlorian Zschocke2020-11-105-20/+1520
|\
| * raw: Fix raw links to branches with a slash in their nameFlorian Zschocke2020-11-102-22/+27
| | | | | | | | | | | | | | | | | | When a branch has a slash in the name, the raw servlet was not able to find the path under that branch. This is due to the replacement of the forward slash character for URLs. It was not taken into account when comparing the branch name later. This fixes #1290 and its duplicates #1234 and #813.
| * raw: Fix getPath with trailing slash that was escapedFlorian Zschocke2020-11-101-3/+7
| | | | | | | | | | | | | | | | | | While this may be an unlikely scenario, let's still prevent this. When a link was created for a path that ends in a trailing slash, that trailing slash would be replaced with the `forwardSlashCharacter`. But in getPath that final slash would be transformed back *after* the check to chop off trailing slashes. This is now switched so that such a trailing slash is also chopped off.
| * raw: Fix getPath with lead-ins or missing trailing slashes after the branch.Florian Zschocke2020-11-091-1/+14
| |
| * raw: Refactor RawServlet:getBranch and :getPath parametersFlorian Zschocke2020-11-093-59/+727
| | | | | | | | | | | | | | | | | | | | | | Refactor the `getBranch` and `getPath` methods to take a String as second parameter, which is the already sanitised path info. Don't get the path info from a passed in request anymore. The methods are only ever called from within `processRequest`, which already does some checks on the path info, like removing a leading slash character. So no need to do that every time again the methods and passing a request for that.
| * raw: Fix exceptions when no path info is given to raw servletFlorian Zschocke2020-11-092-2/+115
| |
| * raw: Strip leading and trailing slash from repo and path names for linkFlorian Zschocke2020-11-093-0/+696
|/ | | | | | When creating a link for raw display, a trailing slash is stripped from the end of the base URL. Also do this for the repository, as well as stripping leading slashes from the repository and the path values.
* build: Upload coverage report also to CodeClimate and CodacyFlorian Zschocke2020-11-051-1/+17
|
* Merge pull request #1350 from flaix/upgrade-mockitoFlorian Zschocke2020-10-313-9/+33
|\ | | | | deps: Upgrade dependency Mockito to 2.28.2.
| * deps: Upgrade dependency Mockito to 2.28.2.Florian Zschocke2020-10-313-9/+33
|/
* Merge pull request #1349 from flaix/issue-1150Florian Zschocke2020-10-301-1/+1
|\ | | | | Fix 1150: Use external link instead of internal wiki link
| * Fix 1150: Use external link instead of internal wiki link for tickets_setupFlorian Zschocke2020-10-291-1/+1
|/ | | | | | | | | | | | | | | | | | | The `tickets_overview` page links to the `tickets_setup` page using a wiki style internal link: `[[tickets setup]]`. Whatever library is interpreting that is creating a link under the assumption that the resulting page will be called `tickets-setup.html`. But that is not the convention used by Moxie, which will use the source file name and thus create a file called `tickets_setup.html`. I was not able to find out which of the many libraries included is the one that parses this file and creates the link. Messy. There are two solutions. One is to configure the Moxie site build to generate the file as `tickets-setup.html`. But this would break any links to that page that might exist somewhere on the Interweb. So I opted for the other option, which is to not use wiki syntax for the reference to the local page but normal markdown syntax. This is not a wiki, afterall.
* Merge pull request #1348 from flaix/ci-coverageFlorian Zschocke2020-10-233-7/+33
|\ | | | | build: Create single XML JaCoCo report
| * ci: Enable upload to Codecov.io in CircleCI J8 build.Florian Zschocke2020-10-221-2/+6
| |
| * build: Activate JaCoCo explicitly for Ant buildFlorian Zschocke2020-10-222-3/+10
| | | | | | | | | | | | | | | | | | When building with Ant, instead of Moxie, JaCoCo is not included in the classpath. So explicitly initialise the full `jacocoant.jar` from the `.moxie` repository. For this we had to switch the dependency to use the `nodeps` jar which includes all dependencies.
| * build: Create single XML JaCoCo reportFlorian Zschocke2020-10-221-2/+17
|/ | | | This can be uploaded to coverage services like Coveralls etc.
* Add contributing guidelinesFlorian Zschocke2020-10-211-0/+57
| | | | | Add some guidelines for contributors regarding pull requests, commits and code conventions.
* Merge pull request #1345 from davehofmann/masterFlorian Zschocke2020-08-292-0/+51
|\ | | | | Add service scripts for FreeBSD
| * Add service scripts for FreeBSDDavid Hofmann2020-08-042-0/+51
|/
* Reset build identifiers for next point release cyclefzs2020-04-052-2/+20
|
* Prepare 1.9.1 releasev1.9.1fzs2020-04-052-10/+10
|
* 📖docs: Add update of service scripts in upgrade GO documentationFlorian Zschocke2020-04-052-4/+49
| | | | Also: release notes.
* 🏃 run: Fix Linux service scripts to use classpath and classFlorian Zschocke2020-04-053-9/+9
| | | | | | | Update the service scripts to use `-cp` and specify the GitBlitServer class, instead of the `-jar` parameter. Fixes #1333
* 🏃run: Use quotes around class path in scriptsFlorian Zschocke2020-04-055-5/+5
| | | | | | | | | While most systems will not need the class path passed to the JVM with the `-cp` parameter to be in quotes, apparently some exist where that will not work without the quotes, e.g. FreeBSD. So always use quotes for the class path in all scripts. Issue #1333
* Change tests in shell scripts to be more compatible with Bourne shellFlorian Zschocke2020-04-052-2/+2
| | | | | This is needed for the scripts to work in Alpine Linux, which comes with a Bourne shell.
* Delete password from memory in AuthenticationManagerFlorian Zschocke2020-04-054-31/+125
| | | | | | Zero out the password to remove it from memory after use. This is only a first step, implementing it for one method: `AuthenticationManager.authenticate(String, char[], String)`.
* 🦟 fix: Password hash upgrade kills existing passwordsFlorian Zschocke2020-04-052-21/+38
| | | | | | | | | | The upgrade of a MD5 stored password hash to a PBKDF password hash destroys the stored password. The has check zeroes out the password that is tested, so that the new hash is built over the zeroed out value. This fix prevents that an also adds a check to the test. Fixes #1335
* docu: Fix typoFlorian Zschocke2020-04-041-1/+1
|