summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/manager/GitblitManager.java
Commit message (Collapse)AuthorAgeFilesLines
* fix for #967 filestore menu for all usersPaul Martin2015-12-071-2/+2
| | | | | | + Filestore listing filtered by user view permissions + Configuration help for filestore relocated to website files + Added migration example
* Log update for Fail2Ban usagePaul Martin2015-10-251-2/+2
| | | | | + Adds standard logging for all authentication providers + Updates help page to use default GitBlit SSH port
* Git-LFS supportPaul Martin2015-10-101-1/+72
| | | | | | | | | | | | | | + 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
* Invalid kerberos patches, works now and with a test.Fabrice Bacchella2015-05-261-0/+5
|
* Add onFork and onRename methods to RepositoryLifeCycleListenerJames Moger2015-05-221-0/+11
|
* Adopt chain-loading properties as the default setupJames Moger2014-10-271-5/+4
|
* Allow authentication providers to control user and team role changesJames Moger2014-09-261-0/+11
|
* Merge branch 'ticket/187' into developJames Moger2014-09-251-0/+12
|\
| * Restrict Gitblit cookie to the context pathJames Moger2014-09-251-0/+12
| |
* | Merge branch 'ticket/173' into developJames Moger2014-09-081-1/+6
|\|
| * Fix MigrateTickets failure for view-restricted repositoriesJames Moger2014-09-081-1/+6
| |
* | Merge branch 'ticket/164' into developJames Moger2014-09-071-0/+7
|\|
| * Create infrastructure for XSS sanitizationJames Moger2014-09-071-0/+6
| |
* | Merge branch 'ticket/167' into developJames Moger2014-09-051-0/+7
|\|
| * New forks shall respect the source repository access restrictionJames Moger2014-09-051-0/+7
| | | | | | | | | | If the source repository access restriction exceeds the fork default (push) then the fork shall inherit the source repository access restriction.
* | Extract ticket service into an injectable object with a custom providerJames Moger2014-07-031-7/+29
| |
* | Implement custom IPublicKeyManager providerJames Moger2014-07-031-11/+22
| |
* | Annotate managers with @SingletonJames Moger2014-07-031-0/+4
| |
* | Extract services manager into a top-level injectable managerJames Moger2014-07-031-84/+0
| |
* | Use Guice-Servlet rather than custom code and expose the InjectorJames Moger2014-07-031-0/+6
|/ | | | | | | | | | | | | | | 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
* Add method to INotificationManager to return email service statusJames Moger2014-06-051-0/+5
|
* Add a basic SSH public key management UIJames Moger2014-06-051-0/+15
|
* Move delete repository function into the edit pageJames Moger2014-05-091-0/+5
|
* Ensure the repository model ref list is refreshed on ref creation or deletionJames Moger2014-05-071-0/+5
|
* Fix forcing default locale to en or LANG_CC for web uiJames Moger2014-04-281-0/+6
|
* [findbugs] Clarify class used for resource loadingJames Moger2014-04-171-2/+2
|
* Add plugin (un)install lifecycle methodsJames Moger2014-04-171-2/+2
|
* Enforce plugin-requires attributeJames Moger2014-04-151-0/+6
|
* Upgrade plugin commandJames Moger2014-04-131-0/+5
|
* Eliminate plugin name, stick with id and descriptionJames Moger2014-04-121-4/+4
|
* Allow user to disable checksum verification on plugin registry refreshJames Moger2014-04-111-2/+2
|
* Improve plugin manager based on upstreamed contributions to pf4jJames Moger2014-04-101-38/+38
|
* Rename SSH key store on user renameJames Moger2014-04-101-0/+3
|
* Implement simple JSON-based plugin registry and install commandJames Moger2014-04-101-0/+36
|
* Split administration commands into a plugin, enhance plugin managerJames Moger2014-04-101-0/+52
|
* Handle ssh keys as objects, not strings, and improve the ls and rm key commandsJames Moger2014-04-101-2/+2
| | | | "gitblit keys ls" now defaults to showing an indexed list of fingerprints which almost matches the output of "sshadd -l". The indexes are useful specifying key(s) to remove using "gitblit keys rm <index>". This is an important improvement for key management.
* Style: changed manager order to reflect dependency chainJames Moger2014-04-101-5/+5
| | | | 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-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+10
|
* Revise SSH public key integration with AuthenticationManagerJames Moger2014-04-101-5/+5
|
* SSHD: Add support for git pack commandsDavid Ostrovsky2014-04-101-0/+7
| | | | | | | | | | | Add git-upload-pack and git-receive-pack commands. Conflicts: src/main/java/com/gitblit/manager/ServicesManager.java src/main/java/com/gitblit/transport/ssh/CommandDispatcher.java src/main/java/com/gitblit/transport/ssh/SshCommandFactory.java Change-Id: I8c057b41f1dfad6d004e6aa91f96c8c673be9be2
* Exclude ticket branches when forking a canonical repositoryJames Moger2014-03-111-2/+32
|
* Ticket tracker with patchset contributionsJames Moger2014-03-031-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A basic issue tracker styled as a hybrid of GitHub and BitBucket issues. You may attach commits to an existing ticket or you can push a single commit to create a *proposal* ticket. Tickets keep track of patchsets (one or more commits) and allow patchset rewriting (rebase, amend, squash) by detecing the non-fast-forward update and assigning a new patchset number to the new commits. Ticket tracker -------------- The ticket tracker stores tickets as an append-only journal of changes. The journals are deserialized and a ticket is built by applying the journal entries. Tickets are indexed using Apache Lucene and all queries and searches are executed against this Lucene index. There is one trade-off to this persistence design: user attributions are non-relational. What does that mean? Each journal entry stores the username of the author. If the username changes in the user service, the journal entry will not reflect that change because the values are hard-coded. Here are a few reasons/justifications for this design choice: 1. commit identifications (author, committer, tagger) are non-relational 2. maintains the KISS principle 3. your favorite text editor can still be your administration tool Persistence Choices ------------------- **FileTicketService**: stores journals on the filesystem **BranchTicketService**: stores journals on an orphan branch **RedisTicketService**: stores journals in a Redis key-value datastore It should be relatively straight-forward to develop other backends (MongoDB, etc) as long as the journal design is preserved. Pushing Commits --------------- Each push to a ticket is identified as a patchset revision. A patchset revision may add commits to the patchset (fast-forward) OR a patchset revision may rewrite history (rebase, squash, rebase+squash, or amend). Patchset authors should not be afraid to polish, revise, and rewrite their code before merging into the proposed branch. Gitblit will create one ref for each patchset. These refs are updated for fast-forward pushes or created for rewrites. They are formatted as `refs/tickets/{shard}/{id}/{patchset}`. The *shard* is the last two digits of the id. If the id < 10, prefix a 0. The *shard* is always two digits long. The shard's purpose is to ensure Gitblit doesn't exceed any filesystem directory limits for file creation. **Creating a Proposal Ticket** You may create a new change proposal ticket just by pushing a **single commit** to `refs/for/{branch}` where branch is the proposed integration branch OR `refs/for/new` or `refs/for/default` which both will use the default repository branch. git push origin HEAD:refs/for/new **Updating a Patchset** The safe way to update an existing patchset is to push to the patchset ref. git push origin HEAD:refs/heads/ticket/{id} This ensures you do not accidentally create a new patchset in the event that the patchset was updated after you last pulled. The not-so-safe way to update an existing patchset is to push using the magic ref. git push origin HEAD:refs/for/{id} This push ref will update an exisitng patchset OR create a new patchset if the update is non-fast-forward. **Rebasing, Squashing, Amending** Gitblit makes rebasing, squashing, and amending patchsets easy. Normally, pushing a non-fast-forward update would require rewind (RW+) repository permissions. Gitblit provides a magic ref which will allow ticket participants to rewrite a ticket patchset as long as the ticket is open. git push origin HEAD:refs/for/{id} Pushing changes to this ref allows the patchset authors to rebase, squash, or amend the patchset commits without requiring client-side use of the *--force* flag on push AND without requiring RW+ permission to the repository. Since each patchset is tracked with a ref it is easy to recover from accidental non-fast-forward updates. Features -------- - Ticket tracker with status changes and responsible assignments - Patchset revision scoring mechanism - Update/Rewrite patchset handling - Close-on-push detection - Server-side Merge button for simple merges - Comments with Markdown syntax support - Rich mail notifications - Voting - Mentions - Watch lists - Querying - Searches - Partial miletones support - Multiple backend options
* Move GarbageCollector repository methods to the RepositoryManagerJames Moger2014-02-281-0/+15
|
* Improve notification api by introducing the Mailing modelJames Moger2014-02-281-17/+3
|
* Do not grant fork CLONE permissions to users/teams with implied regexJames Moger2014-02-261-5/+6
| | | CLONE permissions (issue-320)
* issue-361: Reset user cookie after administrative password changeJames Moger2014-01-281-0/+5
| | | | | | | Cookies were not reset on administrative password change of a user account. This allowed accounts with changed passwords to continue authenticating. Cookies are now reset on password changes, they are validated on each page request, AND they will now expire 7 days after generation.
* New canonical base url setting for repository urls and notificationsJames Moger2013-12-301-1/+5
| | | | Change-Id: I86a1eb61c2351d1cf3f6b3becf00f2a36d5c8ed6
* Support customizing the "from" display name for generated emailsJames Moger2013-12-301-0/+10
| | | | Change-Id: Ibad9e2b1c12a24ad9c671a0d96aafb3365daa529
* Refactor managers and authentication for federationJames Moger2013-11-291-0/+1096
| | | | Change-Id: I5ff18b2768095fb14e7fbece2e756115829abbde