Skip to content

Commit

Permalink
Fixes #12556: NumberFormatException in NodeAPI 8 (runResponse)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanf committed May 14, 2018
1 parent 2542c58 commit 0092c82
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@
package com.normation.rudder.web.rest.node

import com.normation.eventlog.ModificationId

import com.normation.inventory.domain._
import com.normation.rudder.batch.AsyncDeploymentAgent
import com.normation.rudder.batch.AutomaticStartDeployment
import com.normation.rudder.repository.WoNodeRepository
import com.normation.rudder.services.nodes.NodeInfoService
import com.normation.rudder.web.model.CurrentUser
import com.normation.utils.StringUuidGenerator

import net.liftweb.common._
import net.liftweb.json._
import net.liftweb.json.JsonDSL._
Expand All @@ -56,7 +54,10 @@ import java.io.OutputStream
import java.io.IOException
import java.io.PipedInputStream
import java.io.PipedOutputStream
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
import java.util.Arrays

import scalaj.http.Http
import com.normation.rudder.domain.nodes.CompareProperties
import scalaj.http.HttpOptions
Expand Down Expand Up @@ -105,7 +106,7 @@ class NodeApiService8 (
}
} catch {
case e : IOException =>
out.write(s"Error when trying to contact internal remote-run API: ${e.getMessage}".toByte)
out.write(s"Error when trying to contact internal remote-run API: ${e.getMessage}".getBytes(StandardCharsets.UTF_8))
out.flush()
}
}
Expand Down

0 comments on commit 0092c82

Please sign in to comment.