summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit
Commit message (Collapse)AuthorAgeFilesLines
* Moved servlets and services to separate packagesJames Moger2013-11-2941-82/+170
| | | | Change-Id: I5f0f50f4ae7d332e9f724a2e6f074fa71f646035
* Extract Federation, Gitblit and Services manager from GitBlit singletonJames Moger2013-11-2918-1610/+1819
| | | | Change-Id: I2b2f361a868c8eedf4b6df5939e7dfac2d5f92a9
* Extract ProjectManager from the GitBlit singletonJames Moger2013-11-294-256/+341
| | | | Change-Id: I93493a473e3d6ea9b2523c1913d6dc323642344d
* Extract RepositoryManager from the GitBlit singletonJames Moger2013-11-294-1801/+1779
| | | | Change-Id: I265cfaf25e4093ffa5f53f70d8eb1c20d731b7b3
* Extract SessionManager from GitBlit singletonJames Moger2013-11-294-249/+360
| | | | Change-Id: I85c9dfc1413f858dc28d731a0bf653828626e127
* Extract UserManager from GitBlit singletonJames Moger2013-11-2915-385/+652
| | | | Change-Id: I4885255ed63aa6c4e000c3e5501675440dca3958
* Extract NotificationManager from GitBlit singletonJames Moger2013-11-294-128/+190
| | | | Change-Id: I40335a1a3966d6c7c55bcdcca5a6dbf2a91a65d7
* Extract RuntimeManager from GitBlit singletonJames Moger2013-11-2911-324/+554
| | | | Change-Id: I5358389396f816da979ec18a31421c2d2b67b3d9
* Create a Gitblit aggregate manager delegate for git upload/receive tasksJames Moger2013-11-298-85/+796
| | | | Change-Id: I2c4a5ddf051f228c0bd949c6cd4fd44c3da81d26
* Eliminate static singleton calls from user servicesJames Moger2013-11-2910-30/+26
| | | | Change-Id: Ieec34483822f033b19d3ff3259d071c9bc091ed1
* Use Dagger to inject managers into all filters and servletsJames Moger2013-11-2932-184/+742
| | | | Change-Id: I9bb2cc0cbfac9841b13bed15a474fefb24355cd4
* Instantiate and register all servlets and filters from code (servlet 3)James Moger2013-11-2611-19/+323
| | | | Change-Id: I6009e8e157232feab40ec275547a59e2cea23950
* Update to Jetty 8.1.13 for Servlet 3James Moger2013-11-261-1/+1
| | | | Change-Id: If3f30af2ed250968e65cde58bd413213f4d384b1
* Define manager interfaces and update all of Gitblit to use managersJames Moger2013-11-2657-474/+1953
| | | | | | | | | | | | | | | | | | | | | | | | | These manager interfaces define how the GitBlit singleton will eventually be split into smaller component managers. The Wicket app and all servlets have been updated to request the needed managers. There are _very_ few method signature changes - although there are a handful. This is a surgical sharding of responsibility based on a proof of concept refactor. Instead of random references to GittBlit.self() there are now precise references to the manager interface required to accomplish some task. Some tasks may require references to multiple managers. The code is now littered with calls to GitBlit.getManager(class) and those familiar with the code-base will no doubt notice the duplication of methods from IUserService in IUserManager and the addition of implementation methods in the GitBlit context class. When the GitBlit class is broken apart and the existing external authentication user service classes are refactored to AuthenticationService classes, this will again simplify and flatten. But in order to safely and cleanly modularize the stable code-base we will have to live with a little duplication for a short while. Change-Id: I7314ec8acaab2dcc6092785ed4434cc09fdbbe16
* Eliminate nearly all direct GitBlit singleton references in WicketJames Moger2013-11-2661-561/+718
| | | | | | | | | | This is the first step towards modularization and injection. All direct references to the GitBlit singleton within the Wicket pages and panels have been replaced to proxy methods in the GitBlitWebApp singleton. There are still two Wicket classes which rely on the GitBlit singleton; those require manual instantiation (servlet 3). Change-Id: I0cdbbcf87959d590c446c99abb09c07c87c737bc
* Refactor access to home page classJames Moger2013-11-264-11/+13
| | | | Change-Id: Ice5706dc0659a44f54e5bf29ca66580e3be22418
* Automatically disable the Git daemon on ExpressJames Moger2013-11-261-0/+4
| | | | Change-Id: Ide78d4c5db59a734060ce527a59450eed8433c1a
* Automatically adjust web.forwardSlash on Tomcat containersJames Moger2013-11-262-47/+25
| | | | | | | | | | | | | One issue that frequently arises in the discussion group and the bug tracker is how Tomcat automatically re-encodes %2f as '/' which breaks url parameters with %2f. After documenting this in half a dozen places it still comes up. Clearly I haven't done enough. Gitblit will now act on, instead of just report, an improperly configured web.forwardSlash character on Tomcat containers. This will make Gitblit "just work" for more users and will make the world a better place. Change-Id: I344428804070a2d6082022cf6b80e2a3d83cea84
* Improve doc page formattingJames Moger2013-11-262-7/+36
| | | | Change-Id: Icd060aad6c5d72bd02bac8b4098d4b9fe418494b
* Remove elaborate HEAD determinationJames Moger2013-11-261-17/+0
| | | | Change-Id: I0da34a1da0dc3dcb07a98629c2284184402cb23a
* Remove artifact setting from manager dialogJames Moger2013-11-261-4/+0
| | | | Change-Id: I249a88994961c671a090cc33cd0eb8e506f6513e
* Fix NPE when adding a permission without a registrant (issue-344)James Moger2013-11-261-0/+3
| | | | Change-Id: Id6bf070a43072a61a0034bd2d971fc819c9b03e3
* Merge pull request #122 from fzs/ldap-deref-aliasFlorian Zschocke2013-11-221-1/+25
| | | | | | | | | | | | | | | | | Currently the LDAP user service will not dereference aliases when searching for groups. This patch enables dereferencing aliases for the group search. This is benefitial if groups are defined in the DIT in a common place but only certain ones shall play a role in Gitblit. These can now be linked under a group that can be provided as search base for groups, without having to recreate the existing groups under the search base. In addition, the new doSearch() method implemented in this patch also limits the attributes returned for the group search to the "cn" attribute, which is the only one used. That prevents returning all the members of the result groups, which can be a lot. Change-Id: I29e1560390810304386dcea5ca40aaf78601b3a9
* Bind LDAP connection after TLS initialization (issue-343)Günter Dressel2013-11-221-30/+27
|
* 修改中文显示问题及raw默认属性kxyfyh2013-11-183-0/+6
|
* Improve pages servletJames Moger2013-11-151-41/+79
| | | | Change-Id: I5239808bc71441022b4b82e9d369866e9600bbfa
* CSS tweaksJames Moger2013-11-143-5/+2
| | | | Change-Id: I568ffc2b7dfb59e8a6748aaf3e16993bb2016384
* Display common repository documents as tabs on the docs pageJames Moger2013-11-146-67/+156
| | | | Change-Id: I6935fa45598da847936748b474a3da47e94efaac
* Eliminate the "enumerate documentation" repository settingJames Moger2013-11-147-31/+15
| | | | Change-Id: I3a7c13b4c626f8b5ea2a63717dfe4249c19eebb4
* README files are not shown on the summary page by defaultJames Moger2013-11-142-12/+18
| | | | Change-Id: I421a6b8f8c8eaa5d34b7629858de76fc96458cd3
* Tweak pull request ref displayJames Moger2013-11-131-3/+5
| | | | Change-Id: I07d05eb45e40c233facfa3674f9528d2bda4b5d5
* Implement mirror executor (issue-5)James Moger2013-11-1315-6/+289
| | | | | | | | | | | | | | | | | | | | | | | | | The mirror executor will fetch ref updates for repository mirrors. This feature is disabled by default and can be enabled by setting git.enableMirroring=true. The period between update checks is configurable, but it is global. An individual rpeository may not set it's own update schedule. Requirements: 1. you must manually clone the repository using native git git clone --mirror git://somewhere.com/myrepo.git 2. the "origin" remote must be the mirror source 3. the "origin" repository must be accessible without authentication OR the credentials must be embedded in the origin url (not recommended) Notes: 1. "origin" SSH urls are untested and not likely to work 2. mirrors cloned while Gitblit is running are likely to require clearing the gitblit cache (link on the repositories page of an administrator account) 3. Gitblit will automatically repair any invalid fetch refspecs with a "//" sequence. Change-Id: I4bbe3fb2df106366ae4c2313596d0fab0dfcac46
* Remove docs indicatorJames Moger2013-11-134-14/+1
| | | | Change-Id: I422696130695cb18d4c1518b0d53265d7247f966
* Add markup support for confluence, mediawiki, textile, trac, and twikiJames Moger2013-11-122-3/+101
| | | | Change-Id: I82ef161c6b6956c7b83cd4a1c37627beac6ea75b
* Refactor markup processing in preparation for supporting other formatsJames Moger2013-11-1211-171/+309
| | | | Change-Id: I0eb217064abc4f4b0f6bfbbc21302c470cc2f9c6
* Allows the home root link top-left anchor to be customised.Luca Milanesio2013-11-081-1/+2
| | | | | | | A new property web.rootLink has been introduced to customise the link underlying the top-left logo in GitBlit. When undefined the older behaviour is to link to the GitBlit home page.
* Add setting to automatically redirect http requests to the https portJames Moger2013-10-271-0/+29
| | | | Change-Id: I33966b8292434c10ffd623838d09527aaebaca5f
* Strip leading / for absolute wiki link pathsJames Moger2013-10-251-2/+4
| | | | Change-Id: Ic475d570a3438916cd952d317338df1756c8be5a
* Disable the SMARTYPANTS Markdown extensionJames Moger2013-10-251-1/+2
| | | | Change-Id: I3b1c43186d88a30238213983dd702601eb3a6172
* Set Link: <url>; rel="canonical" http header for SEO (issue-304)James Moger2013-10-252-6/+15
| | | | Change-Id: Ie023b5fc58bf988e9064700918a79718aaa6c94b
* Strip Markdown extension from rendered [[WikiLink]] (issue-324)James Moger2013-10-254-4/+15
| | | | Change-Id: I2f695f5d5d72d8c08272981f756334b45398a1f7
* Respect web.forwardSlashCharacter in intra-Markdown links (issue-324)James Moger2013-10-251-1/+2
| | | | Change-Id: I27482c223a3daa0d10f37e88cd80481c6e1eb4b0
* Support for intra-Markdown linking using [[WikiLinks]] syntax (issue-324)James Moger2013-10-257-23/+153
| | | | | | | | | All WikiLinks must be specified relative to the root of the repository. The displayed link text is stripped to just the document name. Spaces in the document name are replaced with '-' characters; this is consistent with wiki syntax and Github. Change-Id: Id3fb1b5441352d9bacc4993a5b85882db113693b
* Determine best commit id for the commit and use that in linksJames Moger2013-10-252-11/+35
| | | | Change-Id: I2c0f5dbb479c06402645cbb92e4845eed29d6726
* Remove "show readme" flag in favor of automatic detectionJames Moger2013-10-259-56/+76
| | | | | | | Automatic detection also will now also display a plain text "readme" or "readme.txt" file. Change-Id: Id6be729bdc469e7a5cfd1f4144df340a6b93475e
* Remove upload pack ref filteringJames Moger2013-10-251-43/+0
| | | | Change-Id: I7ffcbf00e70eea68803eb6c046d5ddca55503b8b
* Use equals to compare strings instead of ==Simon Harrer2013-10-242-3/+3
|
* Replaced MarkdownPapers with pegdownJames Moger2013-10-185-35/+18
| | | | Change-Id: I11eb50ba1ef0bef8ac47bf6f7b17e0f79ecd3f2d
* Fix Markdown document enumeratonJames Moger2013-10-161-2/+2
|
* Fix raw page binary content type when running behind reverse proxyJames Moger2013-10-161-5/+20
| | | | Change-Id: I9f613114b2bb4c1dacae6e67c7673149a0476cf1