Oracle WebCenter Sites (MOSC)

MOSC Banner

Controller issue after Webcenter Sites upgrade from 12.2.1.0.0 to 12.2.1.1.0

edited Oct 10, 2016 4:47AM in Oracle WebCenter Sites (MOSC) 3 commentsAnswered ✓

Hi all,

I've found some problems with Controller after Webcenter Sites upgrading from version 12.2.1.0.0 to version 12.2.1.1.0

I have developed a site that use the Jersey REST functionalities, after the upgrade, when I use a REST in POST mode, I receive a “415 Unsupported Media Type” error

for example the request:

POST http://localhost.localdomain:7003/sites/REST/controller/CommunicationPageController/getFileDonwloadLink

Accept: application/json

Content-Type: application/json

{

"MaterialName":"00037582.JPG",

"MaterialId":"DF7DA441D67567CF7D8489EDEF3645F56F38FF5C4770"

}

handled by this CommunicationPageController method:

 @POST    @Path("/getFileDonwloadLink")    @Produces(MediaType.APPLICATION_JSON)    @Consumes([MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML])    public Response getFileDonwloadLink(final MaterialSetBean reqBean){                OracleDocumentCloud odc = new OracleDocumentCloud(ics)                JsonObjectBuilder objBuilder = Json.createObjectBuilder()                                .add("errorDesc", "")                                .add("success", true)                                .add("DownloadLink" ,  odc.getFilePublicLink(reqBean.MaterialId , reqBean.MaterialName))                return Response.status(200).entity( objBuilder.build() ).build()    }
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center