-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #21: do not serialize JGit objects in Wicket pages
JGit RevCommits contain parent links, which can lead to deep recusions during Wicket's page serialization, until a StackOverflowError occurs. Avoid this by making sure that Wicket objects (pages, panels, or also models) do not use RevCommit directly but always the Gitblit-own RepositoryCommit wrapper. Give RepositoryCommit its own custom serialization which does not write the RevCommit but only its SHA-1 and upon reading re-fetches the commit from the repository. Also ensure that Gitblit's RefModel does not serialize RevObjects. Adapt callers, where necessary. Fix occurrences of Wicket DataViews instantiated with RevCommit. Make those use RepositoryCommit, too.
- Loading branch information
Showing
7 changed files
with
175 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.