Schedule Authorization Error
I just pulled down the latest full docker image. I ran it with the following command.
docker run -p 8080:5488 -e extensions_authentication_admin_username=admin -e extensions_authentication_admin_password=password -e extensions_authentication_cookieSession_secret=yoursecret jsreport/jsreport:2.4.0-full
After creating a basic template, which just said Hello World and setting a schedule to run every minute, I get the following error.
2019-05-22T13:11:12.956Z - error: unable to update schedule stateError: Unauthorized for schedules
at module.exports (/app/node_modules/jsreport-core/lib/util/createError.js:11:13)
at Reporter.createError (/app/node_modules/jsreport-core/lib/reporter.js:265:12)
at check (/app/node_modules/jsreport-authorization/lib/assertPermissions.js:130:20)
However when I run the container without authentication, the schedule works just fine.
Thanks, I can replicate the same. I will take a look at what is the cause and come back to you...
We've fixed this already some time ago in the master branch.
It will be part of the next release 2.5.0 which should be pushed this week.