Hi All, is there a way around this via beanshell? Target exception: org.ofbiz.service.ServiceAuthException: User authorization is required for this service: reserveProductInventory org.ofbiz.service.ServiceAuthException: User authorization is required for this service: reserveProductInventory ... ... ... Thanc Fred _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
userLogin = request.getAttribute("userLogin");
pass it into the UtilMisc.toMap(....) for calling your service *BUT* why are you reserving inventory from beanshell? Fred Forester wrote: > Hi All, > > > is there a way around this via beanshell? > > Target exception: org.ofbiz.service.ServiceAuthException: User > authorization is required for this service: reserveProductInventory > > org.ofbiz.service.ServiceAuthException: User authorization is required > for this service: reserveProductInventory > ... > ... > ... > > Thanc > Fred > > > _______________________________________________ > Users mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/users > > > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
it seems easier for trying things out. and I read somewhere that ... "It can also be used for debugging, testing, and prototyping" :) Thanx Fred Si Chen wrote: userLogin = request.getAttribute("userLogin"); pass it into the UtilMisc.toMap(....) for calling your service *BUT* why are you reserving inventory from beanshell? Fred Forester wrote:Hi All, is there a way around this via beanshell? Target exception: org.ofbiz.service.ServiceAuthException: User authorization is required for this service: reserveProductInventory org.ofbiz.service.ServiceAuthException: User authorization is required for this service: reserveProductInventory ... ... ... Thanc Fred _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users_______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Yeah, I do that all the time. Sorry--I was just curious. Did it work
for you? Si
Fred Forester wrote:
_______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
ah, no, but... the bshcontainer does it already admin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", "admin")); so I did this UtilMisc.toMap("userLogin",admin,..... and that worked. Thanx. Si Chen wrote: Yeah, I do that all the time. Sorry--I was just curious. Did it work for you? Si _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Free forum by Nabble | Edit this page |