Skip to content

Commit ca5fa18

Browse files
committed
Merge branch 'server-side-events'
2 parents 47fc1a0 + b33713e commit ca5fa18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5007
-1936
lines changed

.dockerignore

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
**/node_modules
1+
# Docker ignore file for memory testing builds
2+
3+
# Ignore test results and heap dumps (will be mounted as volumes)
4+
memory-test-results/
5+
heap-dumps/
6+
logs/
7+
8+
# Ignore Git
9+
.git
10+
.gitignore
11+
12+
# Ignore IDE files
13+
.idea/
14+
.vscode/
15+
*.iml
16+
17+
# Ignore build artifacts (except target/faction.war which we need)
18+
target/*
19+
!target/faction.war
20+
21+
# Ignore OS files
22+
.DS_Store
23+
24+
# Ignore documentation (not needed in container)
25+
*.md

WebContent/WEB-INF/jsp/assessment/AddVuln.jsp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ td:first-child {
150150
border-left-style: dotted;
151151
}
152152
153-
.userEdit {
153+
.userEditText {
154154
background: #f39c12;
155155
color: white;
156156
font-weight: bold;
@@ -159,7 +159,6 @@ td:first-child {
159159
padding-right: 7px;
160160
padding-top: 2px;
161161
padding-bottom: 4px;
162-
margin-left: 30px;
163162
}
164163
165164
.cvsstrue {

WebContent/WEB-INF/jsp/assessment/Finalize.jsp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<bs:mco colsize="12">
99
<bs:box type="success" title="Controls">
1010
<div style="padding-bottom:60px">
11+
<s:if test="hasTemplate">
1112
<bs:button color="success" size="md" colsize="3" text="Generate Report" id="genreport"></bs:button>
1213
<s:if test="assessment.finalReport != null">
1314
<s:if test="prEnabled">
@@ -16,6 +17,14 @@
1617
<bs:button color="primary" size="md" colsize="3" text="Download Report" id="dlreport"></bs:button>
1718
<bs:button color="danger" size="md" colsize="3" text="Finalize Assessment" id="finalize"></bs:button>
1819
</s:if>
20+
</s:if>
21+
<s:else>
22+
<div class="alert alert-danger">
23+
<h5><i class="icon fas fa-ban"></i> Alert!</h5>
24+
No Report Template Configured for this Assessment Type.
25+
Contact Your Administrator.
26+
</div>
27+
</s:else>
1928
</div>
2029
</bs:box>
2130
</bs:mco>

WebContent/WEB-INF/jsp/engagement/AssessorSearch.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ div[id^='rtCust']{
141141
</bs:row>
142142
<bs:row>
143143
<bs:select name="Engagement Contact: <b></b>" colsize="4" id="engName">
144-
<s:iterator value="engagement">
144+
<s:iterator value="eng_users">
145145
<option value="<s:property value="id"/>"><s:property value="fname"/> <s:property value="lname"/></option>
146146
</s:iterator>
147147
</bs:select>

WebContent/WEB-INF/web.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<param-name>struts.i18n.encoding</param-name>
9191
<param-value>UTF-8</param-value>
9292
</init-param>
93+
<async-supported>true</async-supported>
9394
</filter>
9495
<filter-mapping>
9596
<filter-name>struts2</filter-name>
@@ -259,6 +260,13 @@
259260
<servlet-name>uploadAssessment</servlet-name>
260261
<servlet-class>com.fuse.servlets.uploadAssessment</servlet-class>
261262
</servlet>
263+
<servlet>
264+
<description>Server-Side Events stream endpoint</description>
265+
<display-name>EventStreamServlet</display-name>
266+
<servlet-name>EventStreamServlet</servlet-name>
267+
<servlet-class>com.fuse.servlets.EventStreamServlet</servlet-class>
268+
<async-supported>true</async-supported>
269+
</servlet>
262270
<servlet-mapping>
263271
<servlet-name>test</servlet-name>
264272
<url-pattern>/service/test</url-pattern>
@@ -335,6 +343,10 @@
335343
<servlet-name>uploadAssessment</servlet-name>
336344
<url-pattern>/service/uploadAssessment</url-pattern>
337345
</servlet-mapping>
346+
<servlet-mapping>
347+
<servlet-name>EventStreamServlet</servlet-name>
348+
<url-pattern>/service/events/stream</url-pattern>
349+
</servlet-mapping>
338350
<welcome-file-list>
339351
<welcome-file>index.html</welcome-file>
340352
</welcome-file-list>

WebContent/dist/js/default_vulns.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebContent/dist/js/overview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebContent/dist/js/templates.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebContent/dist/js/vulnview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)