Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMS-14865: Fixed missing forms #5835

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,22 @@
<beans:constructor-arg name="pattern" value="/notification/browse"/>
<beans:constructor-arg name="httpMethod" value="POST"/>
</beans:bean>

<!-- see NMS-14865 -->
<beans:bean class="org.springframework.security.web.util.matcher.AntPathRequestMatcher">
<beans:constructor-arg name="pattern" value="/admin/addNewInterface"/>
<beans:constructor-arg name="httpMethod" value="POST"/>
</beans:bean>

<beans:bean class="org.springframework.security.web.util.matcher.AntPathRequestMatcher">
<beans:constructor-arg name="pattern" value="/admin/deleteSelNodes"/>
<beans:constructor-arg name="httpMethod" value="POST"/>
</beans:bean>

<beans:bean class="org.springframework.security.web.util.matcher.AntPathRequestMatcher">
<beans:constructor-arg name="pattern" value="/admin/manageNodes"/>
<beans:constructor-arg name="httpMethod" value="POST"/>
</beans:bean>
</util:list>
</beans:constructor-arg>
</beans:bean>
Expand Down
2 changes: 1 addition & 1 deletion opennms-webapp/src/main/webapp/admin/delete.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</script>

<form method="post" name="deleteAll" action="admin/deleteSelNodes">

<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<%
int midNodeIndex = 1;

Expand Down
2 changes: 1 addition & 1 deletion opennms-webapp/src/main/webapp/admin/manage.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@


<form method="post" name="manageAll" action="admin/manageNodes">

<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<%
int halfway = 0;
int midCount = 0;
Expand Down
1 change: 1 addition & 0 deletions opennms-webapp/src/main/webapp/admin/newInterface.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
</div>
<div class="card-body">
<form method="post" name="newIpForm" onsubmit="return verifyIpAddress();">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<c:if test="${param.action == 'redo'}">
<p class="text-danger">
The IP address ${param.ipAddress} already exists.
Expand Down