Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
e6f76e8c
Unverified
Commit
e6f76e8c
authored
Mar 01, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💡
更新注释
parent
65e954e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
+1
-1
src/main/java/org/b3log/solo/processor/PageProcessor.java
src/main/java/org/b3log/solo/processor/PageProcessor.java
+1
-1
src/main/java/org/b3log/solo/processor/PermalinkHandler.java
src/main/java/org/b3log/solo/processor/PermalinkHandler.java
+2
-2
No files found.
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
View file @
e6f76e8c
...
@@ -693,7 +693,7 @@ public class ArticleProcessor {
...
@@ -693,7 +693,7 @@ public class ArticleProcessor {
*/
*/
@RequestProcessing
(
value
=
"/article"
,
method
=
HttpMethod
.
GET
)
@RequestProcessing
(
value
=
"/article"
,
method
=
HttpMethod
.
GET
)
public
void
showArticle
(
final
RequestContext
context
)
{
public
void
showArticle
(
final
RequestContext
context
)
{
// See Permalink
Filt
er#dispatchToArticleOrPageProcessor()
// See Permalink
Handl
er#dispatchToArticleOrPageProcessor()
final
JSONObject
article
=
(
JSONObject
)
context
.
attr
(
Article
.
ARTICLE
);
final
JSONObject
article
=
(
JSONObject
)
context
.
attr
(
Article
.
ARTICLE
);
if
(
null
==
article
)
{
if
(
null
==
article
)
{
context
.
sendError
(
HttpServletResponse
.
SC_NOT_FOUND
);
context
.
sendError
(
HttpServletResponse
.
SC_NOT_FOUND
);
...
...
src/main/java/org/b3log/solo/processor/PageProcessor.java
View file @
e6f76e8c
...
@@ -111,7 +111,7 @@ public class PageProcessor {
...
@@ -111,7 +111,7 @@ public class PageProcessor {
Skins
.
fillLangs
(
preference
.
getString
(
Option
.
ID_C_LOCALE_STRING
),
(
String
)
context
.
attr
(
Keys
.
TEMAPLTE_DIR_NAME
),
dataModel
);
Skins
.
fillLangs
(
preference
.
getString
(
Option
.
ID_C_LOCALE_STRING
),
(
String
)
context
.
attr
(
Keys
.
TEMAPLTE_DIR_NAME
),
dataModel
);
// See Permalink
Filt
er#dispatchToArticleOrPageProcessor()
// See Permalink
Handl
er#dispatchToArticleOrPageProcessor()
final
JSONObject
page
=
(
JSONObject
)
context
.
attr
(
Page
.
PAGE
);
final
JSONObject
page
=
(
JSONObject
)
context
.
attr
(
Page
.
PAGE
);
if
(
null
==
page
)
{
if
(
null
==
page
)
{
context
.
sendError
(
HttpServletResponse
.
SC_NOT_FOUND
);
context
.
sendError
(
HttpServletResponse
.
SC_NOT_FOUND
);
...
...
src/main/java/org/b3log/solo/processor/PermalinkHandler.java
View file @
e6f76e8c
...
@@ -75,7 +75,7 @@ public class PermalinkHandler implements Handler {
...
@@ -75,7 +75,7 @@ public class PermalinkHandler implements Handler {
final
String
contextPath
=
Latkes
.
getContextPath
();
final
String
contextPath
=
Latkes
.
getContextPath
();
final
String
permalink
=
StringUtils
.
substringAfter
(
requestURI
,
contextPath
);
final
String
permalink
=
StringUtils
.
substringAfter
(
requestURI
,
contextPath
);
if
(
PermalinkQueryService
.
invalidPermalinkFormat
(
permalink
))
{
if
(
PermalinkQueryService
.
invalidPermalinkFormat
(
permalink
))
{
LOGGER
.
log
(
Level
.
DEBUG
,
"Skip
filter
request [URI={0}]"
,
permalink
);
LOGGER
.
log
(
Level
.
DEBUG
,
"Skip
permalink handling
request [URI={0}]"
,
permalink
);
context
.
handle
();
context
.
handle
();
return
;
return
;
...
@@ -95,7 +95,7 @@ public class PermalinkHandler implements Handler {
...
@@ -95,7 +95,7 @@ public class PermalinkHandler implements Handler {
return
;
return
;
}
}
}
catch
(
final
RepositoryException
e
)
{
}
catch
(
final
RepositoryException
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Processes article permalink
filt
er failed"
,
e
);
LOGGER
.
log
(
Level
.
ERROR
,
"Processes article permalink
handl
er failed"
,
e
);
context
.
sendError
(
HttpServletResponse
.
SC_NOT_FOUND
);
context
.
sendError
(
HttpServletResponse
.
SC_NOT_FOUND
);
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment