Skip to content

Commit

Permalink
Replaced hudson.Util.rawEncode with java.net.URLEncoder - in MetaTabu…
Browse files Browse the repository at this point in the history
…latedResult for now
  • Loading branch information
Ahad Mammadov committed Dec 5, 2024
1 parent ea466b7 commit b2bebb6
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ THE SOFTWARE.
</thead>
<j:forEach var="f" items="${it.failedTests}" varStatus="i">
<tr>
<td class="pane no-wrap"><t:failed-test result="${f}" url="${f.getRelativePathFrom(it)}"/></td>
<j:set var="encodedRelativePath">
<j:forEach items="${f.getRelativePathFrom(it).split('/')}" var="component" varStatus="i">
<j:invokeStatic var="encodedComponent" className="java.net.URLEncoder" method="encode">
<j:arg value="${component}" />
<j:arg value="UTF-8" />
</j:invokeStatic>
<j:if test="${i.index > 0}">/</j:if>${encodedComponent}
</j:forEach>
</j:set>
<td class="pane no-wrap"><t:failed-test result="${f}" url="${encodedRelativePath}"/></td>
<td class="pane no-wrap" style="text-align:right;" data="${f.duration}">
${f.durationString}
</td>
Expand Down

0 comments on commit b2bebb6

Please sign in to comment.