-
Notifications
You must be signed in to change notification settings - Fork 102
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
Create Folder returns Bad Request #294
Comments
You can find log file in logs folder located in your application folder
(or change logging settings into console) where you find http logs with
error descriptor.
5 мая 2017 г. 23:23 пользователь "NicoTexas" <[email protected]>
написал:
… Trying to create a simple folder as superuser
ClientFolder folder = new ClientFolder();
String parentUri = "/public";
folder.setUri("/public/test")
.setLabel("test Folder")
.setDescription("test folder description")
.setPermissionMask(0)
.setCreationDate("2017-01-24 16:27:47")
.setUpdateDate("2017-01-24 16:27:47")
.setVersion(0);
OperationResult<ClientResource> result = getJasperSession()
.resourcesService()
.resource(folder.getUri())
.createOrUpdate(folder);
Returns
com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.BadRequestException:
Bad Request
Also, is there a way to get more info than this in the response?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#294>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AIkn18VXeaYPONorLgmfgWY_xq8BMfRcks5r24VdgaJpZM4NSYeT>
.
|
Ok, I found out how to turn on the http logs I tried to change that with the date straight from the doc 2014-01-24 16:27:47 and got same error. The correct format is |
try not to set this parameter at all, it's set automatically by server(as well as update date and version) |
Indeed, it works when not set but documentation example date format is wrong. |
Trying to create a simple folder as superuser
Returns
com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.BadRequestException: Bad Request
I am using version 6.3.0
Also, is there a way to get more info than this in the response?
The text was updated successfully, but these errors were encountered: