summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/servlet/GitblitContext.java
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Handle possible NPE when extracting WAR resources into a new directoryJames Moger2015-11-251-1/+7
|
* Git-LFS supportPaul Martin2015-10-101-0/+2
| | | | | | | | | | | | | | + Metadata maintained in append-only JSON file providing complete audit history. + Filestore menu item + Lists filestore items + Current size and availability + Link to GitBlit Filestore help page (top right) + Hooks into existing repository permissions + Uses default repository path for out-of-box operation with Git-LFS client + accessRestrictionFilter now has access to http method and auth header + Testing for servlet and manager
* Use startManager(X) from startManager(Injector, Class)James Moger2014-12-031-3/+1
|
* Allows starting an already instantiated managerLuca Milanesio2014-11-291-0/+6
| | | | | | When a manager is injected through other means, (e.g. using a different GuiceModule and injector in Gerrit) we need a way to start it without having to necessarily passing through the injection process again.
* Extract WAR data resources if they do not exist in ${baseFolder}James Moger2014-11-241-4/+2
|
* Merge branch 'ticket/193' into developJames Moger2014-09-301-12/+27
|\
| * Support GITBLIT_HOME as a system property and environment variableJames Moger2014-09-301-12/+27
| |
* | Merge branch 'ticket/185' into developJames Moger2014-09-241-3/+3
|\|
| * Fix GITBLIT_HOME environment variable baseFolder supportJames Moger2014-09-241-3/+3
| |
* | Merge branch 'ticket/141' into developJames Moger2014-09-041-1/+1
|\|
| * Allow gitblit baseFolder to be defined by a system propertyKoen Serry2014-08-031-1/+1
| |
* | Extract ticket service into an injectable object with a custom providerJames Moger2014-07-031-0/+2
| |
* | Extract services manager into a top-level injectable managerJames Moger2014-07-031-0/+2
| |
* | Dropped WebListener annotationJames Moger2014-07-031-2/+0
| |
* | Use Guice-Servlet rather than custom code and expose the InjectorJames Moger2014-07-031-44/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fairly functional variation of Gitblit with one notable exception: The security filters are not working properly. This is a design flaw in Guice that I have reported upstream [1]. The general idea is that Guice-Servlet filters are not properly wrapping the ServletRequest. This has historically been a problem for Guice-Servlet servlets but Google has fixed most of those issues. Unfortunately, all the same flaws reported against the servlet delegation also exist in Guice-Servlet filter delegation. :( [1]: https://code.google.com/p/google-guice/issues/detail?id=807
* | Replace Dagger with Guice 4.0 beta and update Guava to 16.0.1James Moger2014-07-031-15/+15
| |
* | Move the DaggerModule to the Dagger packageJames Moger2014-07-031-1/+1
| |
* | Return of Servlet3 servlet and filter loadingJames Moger2014-07-031-18/+46
|/ | | | This is a quick return of the servlet3-style code which was reverted mid-December 2013. It is not completely tested, but a casual review was done and it's looks good. The next steps should be to restore `@Inject` annotations, simplify *DaggerModule* boilerplate, and run this on a JEE container with CDI - like JBoss AS 7.
* Add repository and user/team lifecycle listener extension pointsJames Moger2014-06-091-1/+9
|
* Simplified repository creation with a NewRepositoryPageJames Moger2014-06-031-0/+16
|
* Add startup/shutdown LifeCycle extension pointJames Moger2014-05-151-0/+20
|
* [findbugs] Reduce static variable assignment to one locationJames Moger2014-04-171-3/+1
|
* Start plugin manager last to allow plugins deterministic access to the other ↵James Moger2014-04-141-1/+4
| | | | managers
* Style: changed manager order to reflect dependency chainJames Moger2014-04-101-2/+2
| | | | Managers are mostly declared in dependency order. Managers with fewer dependencies are first. They are likely to be components of other managers. Also eliminated import artifacts from the cherry-pick.
* Add plugins/extension infrastructureDavid Ostrovsky2014-04-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Plugins are stored in `${baseFolder}/plugins` and are loaded during startup by the PluginManager. A plugin defines it's metadata in META-INF/MANIFEST.MF: Plugin-Class: com.gitblit.plugins.cookbook.CookbookPlugin Plugin-Dependencies: foo, bar Plugin-Id: gitblit-plugin Plugin-Provider: John Doe Plugin-Version: 1.0 Plugins can define extension points that can be implemented by other plugins and they can depend on other plugins: Plugin-Dependencies: foo, bar During the load phase, a directed acyclic graph is built and the loading order of the dependency chain is reversed using a topological sort; parent followed by children. The parent plugin classloader is the combined classloader of all parent plugins. Change-Id: I738821fa2bff02a5dbe339a944cc7e3c4dd8e299
* Elevate the public key manager to a top-level managerJames Moger2014-04-101-1/+3
|
* openshift war support (non express)aholland2014-02-241-11/+20
|
* Rollback to Servlet 2.5James Moger2013-12-111-48/+20
| | | | | | | | | | | | | | | | | Combining Dagger and Servlet 3 works really well on stock Tomcat and Jetty but it is a troublesome combination on JEE containers with their own ideas on how to instantiate classes. JBoss AS 7 has been particularly nasty and it is just simpler to scaleback and stay with Servlet 2.5 than it is to fight all permuations of containers. Instead of using constructor DI, the servlets and filters each have an inject(ObjectGaph) method which is automatically called during initialization. Each servlet or filter is responsible for retrieving the required dependency from the graph. The Dagger object graph is created in the context listener and stuffed into the context as an attribute. Change-Id: Ib5714584fe73e2a6b9c6fda12af080a43356cbda
* Flattened IGitblitManager, GitblitManager, and GitBlit classesJames Moger2013-11-291-4/+2
| | | | Change-Id: Id6deb27306e0034898673bf5d5d76a4ed012ced6
* Serve repositories on /r in addition to /gitJames Moger2013-11-291-1/+2
| | | | Change-Id: I3cd332a6509e434d901e1b262600f4c8ce57752b
* Refactor user services and separate authentication (issue-281)James Moger2013-11-291-2/+2
| | | | Change-Id: I336e005e02623fc5e11a4f8b4408bea5465a43fd
* Moved servlets and services to separate packagesJames Moger2013-11-291-0/+432
Change-Id: I5f0f50f4ae7d332e9f724a2e6f074fa71f646035