0

I have used the API to create a modifier, using InventoryConnector and createModifier. I have tried to use the InventoryConnector and deleteModifier to delete the modifier after I am done with it, but I get a java.lang.SecurityException: Access denied to package [package name].

I attempted to use the REST API and sending an HTTP DELETE as an alternative, but I get an empty response back and the modifier is still there.

Is it not possible for an app to delete a modifier?

asked 2015-12-16 14:31:58 -0500

Jim Patel gravatar image
Comments

The conversation in this ticket might help you: http://devask.clover.com/question/784...

jacobabrams gravatar image
jacobabrams 2015-12-16 18:38:13 -0500

My app is registered in the app market and currently has all permissions possible. I installed it to my emulator so that Clover is aware of the permissions it has requested. As stated, I'm able to create a Modifier. I am wondering if it is possible to delete one. I assume that since I'm getting a SecurityException that that functionality is locked only to com.clover packages using the Java API.

There is this available to use in the REST API and it doesn't seem to work.

Any assistance would be appreciated.

Jim Patel gravatar image
Jim Patel 2015-12-17 12:59:29 -0500

We allow 3rd party apps to both create and delete modifiers. Can you post the contents of logcat with the stacktrace as well as a code snippet for how you are trying to execute the create and delete?

jacobabrams gravatar image
jacobabrams 2015-12-18 11:53:50 -0500

It's too long for a comment, but here's a pastebin link with the Exception stack trace and the relevant code.

http://pastebin.com/Lkj381yR

Here are the Clover Permissions for the app:

Read and modify your Customers data

Read and modify your Employees data

Read and modify your Inventory data

Read and modify your Merchant data

Read and modify your Orders data

Read and modify your Payments data

Jim Patel gravatar image
Jim Patel 2015-12-18 12:47:15 -0500

This looks like a bug in our code, I will file a ticket to have this fixed.

jacobabrams gravatar image
jacobabrams 2015-12-29 11:53:57 -0500

1 answer

Sort by  
0

Our code is broken, we have a ticket filed and are working on a fix. I will try to update this ticket when it is fixed. If you need an immediate work-around you could use REST API.

UPDATE:

This should be fixed as of 1/20/2016, version 1473 of "Clover" app should have the fix. You can see the version of the apps by going to Settings > Storage > Apps and clicking on the app with the exact name "Clover".

answered 2015-12-29 19:12:59 -0500

jacobabrams gravatar image

updated 2016-02-01 14:37:50 -0500

Comments

Hi, I have updated my Clover to 1476, but still I am facing same issue, Still it is giving "com.clover.sdk.v1.ClientException at com.clover.sdk.v1.ServiceConnector.throwOnFailure(ServiceConnector.java:277) 02-01 19:18:28.753 975-1992/com.table.tablemanagement W/System.err: at com.clover.sdk.v1.ServiceConnector.execute(ServiceConnector.java:210) 02-01 19:18:28.753 975-1992/com.table.tablemanagement W/System.err: at com.clover.sdk.v3.order.OrderConnector.deleteLineItemModifications(OrderConnector.java:343)"

and my order detail is Order Status = open :: Order ID =PP3V82KYNV2TA :: Line

kamlakar gravatar image
kamlakar 2016-02-02 00:22:42 -0500

This ticket is about InventoryConnector not OrderConnector.

jacobabrams gravatar image
jacobabrams 2016-02-02 09:44:12 -0500