Skip to content

Commit 66e081e

Browse files
committed
Raw servlet now assumes text/plain for dot files
1 parent 3cbfebb commit 66e081e

File tree

2 files changed

+102
-7
lines changed

2 files changed

+102
-7
lines changed

releases.moxie

Lines changed: 101 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,106 @@ r29: {
99
html: ~
1010
text: ~
1111
security: ~
12-
fixes: ~
13-
changes: ~
14-
additions: ~
15-
dependencyChanges: ~
16-
contributors: ~
12+
fixes:
13+
- Fix exception when viewing a ticket with a patchset where the integration branch does not exist (issue-521, ticket-212)
14+
- Fix exception when deleting a repository using the FileTicketService (issue-522, ticket-213)
15+
- Do not inject team repository permissions as explicit user permissions when editing a user (issue-462, ticket-214)
16+
- Whitelist the target link attribute in the XSS filter (ticket-216)
17+
- Strip line breaks from pasted SSH keys (ticket-245)
18+
- Fix project sorting (pr-287)
19+
- Fix Lucene indexing of tags (pr-291)
20+
- Prevent session fixation for external authentication (pr-908)
21+
- Encode email subject as UTF-8 (pr-929)
22+
- Do not automatically trim passwords (pr-932)
23+
- Fix nested repository detection in raw servlet (pr-950, pr-957)
24+
- Raw servlet will now assume text/plain for dot files (pr-956)
25+
changes:
26+
- Replaced Dagger with Guice (ticket-80)
27+
- Use release name as root directory in Gitblit GO artifacts (ticket-109)
28+
- Split gitblit.properties into gitblit.properties & defaults.properties (ticket-110)
29+
- Show team type in teams page (pr-217, ticket-168)
30+
- Relocate the repository Delete button (ticket-225)
31+
- Improve diff performance by gracefully limiting large diffs (pr-226)
32+
- Add granular settings to disable display of git transport urls (pr-274)
33+
- Use author date to be consistent with other tools (pr-919)
34+
additions:
35+
- Add GitHub Octicons (ticket-106)
36+
- Support for chain-loading properties files (ticket-110)
37+
- Add Priority & Severity fields for tickets (pr-220, ticket-157)
38+
- Add Maintenance ticket type (pr-223, ticket-206)
39+
- Add commitdiff option to ignore whitespace (ticket-233)
40+
- Add configurable tab length for blob views (ticket-253)
41+
- Implement image diffs (pr-229)
42+
- Add support for configurable HTTP proxy host/port in PluginManager (pr-235)
43+
- Implement collapsed empty folder navigation (pr-241)
44+
- Implement hashing to detect usermodel changes and reduce users.conf file I/O (pr-246)
45+
- Add support for Kerberos5/GSS authentication to SSH (pr-254)
46+
- Allow extraction of additional user metadata in request headers when using external or container authentication (pr-255)
47+
- Allow custom host & port specification for advertised SSH urls (pr-268)
48+
- Improve logging for fail2ban usage (pr-296)
49+
- Initial implementation of Git-LFS (pr-921)
50+
- Add "all" repositories parameter to Search page (pr-935)
51+
dependencyChanges:
52+
- Guice 4.0 (ticket-80, ticket-219)
53+
- SLF4j 1.7.12
54+
- gson 2.3.1
55+
- Freemarker 2.3.22
56+
- Lucene 4.10.0 (ticket-159)
57+
- SSHD 1.0.0
58+
- JGit 4.1.1
59+
- Groovy 2.4.4
60+
- Wicket 1.4.22
61+
- BouncyCastle 1.52
62+
- Pegdown 1.5.0
63+
- Jetty 9.2.13
64+
settings:
65+
- { name: web.displayUserPanel, defaultValue: 'true' }
66+
- { name: web.tabLength, defaultValue: 4 }
67+
- { name: web.avatarClass, defaultValue: '' }
68+
- { name: web.showHttpServletUrls, defaultValue: 'true' }
69+
- { name: web.showGitDaemonUrls, defaultValue: 'true' }
70+
- { name: web.showSshDaemonUrls, defaultValue: 'true' }
71+
- { name: web.advertiseAccessPermissionForOtherUrls, defaultValue: 'false' }
72+
- { name: web.maxDiffLinesPerFile, defaultValue: '4000' }
73+
- { name: web.maxDiffLines, defaultValue: '20000' }
74+
- { name: ssh.advertisedHost, defaultValue: '' }
75+
- { name: ssh.advertisedPort, defaultValue: '' }
76+
- { name: git.sshWithKrb5, defaultValue: '' }
77+
- { name: git.sshKrb5Keytab, defaultValue: '' }
78+
- { name: git.sshKrb5ServicePrincipalName, defaultValue: '' }
79+
- { name: git.sshKrb5StripDomain, defaultValue: 'true' }
80+
- { name: filestore.storageFolder, defaultValue: '${baseFolder}/lfs' }
81+
- { name: filestore.maxUploadSize, defaultValue: '-1' }
82+
- { name: plugins.httpProxyHost, defaultValue: '' }
83+
- { name: plugins.httpProxyPort, defaultValue: '' }
84+
- { name: plugins.httpProxyAuthorization, defaultValue: '' }
85+
- { name: realm.container.autoAccounts.displayName, defaultValue: '' }
86+
- { name: realm.container.autoAccounts.emailAddress, defaultValue: '' }
87+
- { name: realm.container.autoAccounts.locale, defaultValue: '' }
88+
- { name: realm.container.autoAccounts.adminRole, defaultValue: '' }
89+
90+
contributors:
91+
- James Moger
92+
- David Ostrovsky
93+
- Alex Lewis
94+
- Florian Zschocke
95+
- Paul Martin
96+
- razzard
97+
- Alexander Zabluda
98+
- Marcin Cieślak
99+
- Rainer W
100+
- Vitaliy Filippov
101+
- willyann
102+
- enrico204
103+
- mrjoel
104+
- Fabrice Bacchella
105+
- Milos Cubrilo
106+
- Thomas Wolf
107+
- Morten Bøgeskov
108+
- Steven Oliver
109+
- Dariusz Bywalec
110+
- Jan Šmucr
111+
-paladox
17112
}
18113

19114
#
@@ -23,7 +118,7 @@ r28: {
23118
title: Gitblit 1.7.1 released
24119
id: 1.7.1
25120
date: 2015-11-23
26-
note: This is a re-build of 1.7.0 with the fix for failed WAR deployments.
121+
note: This is a re-build of 1.7.0 with a fix for failed WAR deployments.
27122
html: ~
28123
text: ~
29124
security: ~

src/main/java/com/gitblit/servlet/RawServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private void processRequest(HttpServletRequest request, HttpServletResponse resp
233233
try {
234234

235235
String ext = StringUtils.getFileExtension(file).toLowerCase();
236-
String contentType = quickContentTypes.get(ext);
236+
String contentType = file.charAt(0) == '.' ? "text/plain" : quickContentTypes.get(ext);
237237

238238
if (contentType == null) {
239239
List<String> exts = runtimeManager.getSettings().getStrings(Keys.web.prettyPrintExtensions);

0 commit comments

Comments
 (0)