Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Use Java API to delete pending asset

Hi,

I am trying to use the API to delete a pending asset. My simplified code is:

RAMAsset pending = session.getAsset(new AssetIdentification(guid, version, true));
asset.setAction(RAMAction.DELETE);
session.put(asset, new NullProgressMonitor());

I consistently receive an exception even though I am an administrator of the community. I have tried this with several pending assets.

com.ibm.ram.common.data.exception.RAMRuntimeException: You are not authorized to delete asset "XYZ"

I can pull up the web UI and delete the pending asset without a problem.

What is the right way to do this through the API? This is a 7.2.0.2 system.

Thanks in advance!

0 votes



4 answers

Permanent link
Hi,

This looks like a bug. It appears that for a delete asset the client
code is ignoring the "pending" status and is trying to delete the main
asset, which is locked.

Could you please open a defect for this?

--
Rich Kulp
Rational Asset Manager developer

0 votes


Permanent link
I have opened defect 45187 to track.

https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/45187


Hi,

I am trying to use the API to delete a pending asset. My simplified code is:

RAMAsset pending = session.getAsset(new AssetIdentification(guid, version, true));
asset.setAction(RAMAction.DELETE);
session.put(asset, new NullProgressMonitor());

I consistently receive an exception even though I am an administrator of the community. I have tried this with several pending assets.

com.ibm.ram.common.data.exception.RAMRuntimeException: You are not authorized to delete asset "XYZ"

I can pull up the web UI and delete the pending asset without a problem.

What is the right way to do this through the API? This is a 7.2.0.2 system.

Thanks in advance!

0 votes


Permanent link
Hi,

Is there a convention to specify a pending asset in the REST API as a workaround for now?

Thanks,
Jim

0 votes


Permanent link
hi folks,
I created a custom workflow in RTC client following the Infocenter instruction.

The workflow looks pretty similar to the one provided OOTB. When I saved it and restarted the RAM server the workflow didn't show up among other workflows available for the Community.

I verified the workflow ID and binding.

Is there any way to troubleshoot this? What's missing?

FYI. My RAM version is 7.5.0.1


Thanks in advance.

Dmitry

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 09 '11, 8:15 p.m.

Question was seen: 4,764 times

Last updated: Feb 09 '11, 8:15 p.m.

Confirmation Cancel Confirm