Skip to content

Commit

Permalink
Fix get node log admin ws
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauleing committed Oct 30, 2024
1 parent d7e63d4 commit 05608d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
/**
* Main JQM client API entry point.
*/
final class JdbcClient implements JqmClient, JqmClientEnqueueCallback, JqmClientQuerySubmitCallback
public final class JdbcClient implements JqmClient, JqmClientEnqueueCallback, JqmClientQuerySubmitCallback
{
private static Logger jqmlogger = LoggerFactory.getLogger(JdbcClient.class);
private static final int IN_CLAUSE_LIMIT = 500;
Expand Down Expand Up @@ -1014,7 +1014,8 @@ private String getStringPredicate(String fieldName, List<String> filterValues, L

private String getIntPredicate(String fieldName, Integer filterValue, List<Object> prms)
{
if (filterValue == null) {
if (filterValue == null)
{
return "";
}
return getLongPredicate(fieldName, filterValue.longValue(), prms);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.enioka.api.admin.RUserDto;
import com.enioka.api.admin.VersionDto;
import com.enioka.jqm.client.api.JqmClientException;
import com.enioka.jqm.client.jdbc.api.JdbcClient;
import com.enioka.jqm.jdbc.DbConn;
import com.enioka.jqm.model.GlobalParameter;
import com.enioka.jqm.model.JobDef;
Expand Down Expand Up @@ -747,12 +748,9 @@ public InputStream getNewCertificate(@PathParam("id") long userId)
@GET
public InputStream SS(@PathParam("nodeName") String nodeName, @QueryParam("latest") int latest, @Context HttpServletResponse res)
{
// TODO
/*
* InputStream fs = ((JdbcClient) JqmClientFactory.getClient()).getEngineLog(nodeName, latest); res.setHeader("Content-Disposition",
* "attachment; filename=" + nodeName + ".log"); return fs;
*/

return null;
InputStream fs = ((JdbcClient) Helpers.getClient()).getEngineLog(nodeName, latest);
res.setHeader("Content-Disposition", "attachment; filename=" + nodeName + ".log");
return fs;
}
}

0 comments on commit 05608d4

Please sign in to comment.