Hello everybody,
currently I'm trying to develop a servlet application for polarion. The Servlet itself is working fine, but I have problems with the API of polarion.
In my servlet I read some workitems and if some conditions are fulfilled, i want to add a attachment (a picture). Therefore I use the IWorkitem method createAttachment. I save the attachment and the item and the attachment is there.
But if I'm calling the IAttachment.toURL() method, I receive always a null object.
Is there any chance to get the URL (not the URI) of the attachment?
Thanks in advance
Tobi
subterra URI to URL
-
- Posts: 5
- Joined: Mon Sep 07, 2009 7:34 am
- Location: ASK Industries GmbH, Niederwinkling
Re: subterra URI to URL
Hello,
it seems the Attachment URL is only filled when the attachment is reloaded after creating it.
Maybe just creating the attachment and then reloading it from the Workitem will be sufficient, but it is possible that it is required to commit the transaction before it is possible to properly reload the attachment.
Best Regards,
support@polarion.com
it seems the Attachment URL is only filled when the attachment is reloaded after creating it.
Maybe just creating the attachment and then reloading it from the Workitem will be sufficient, but it is possible that it is required to commit the transaction before it is possible to properly reload the attachment.
Best Regards,
support@polarion.com
-
- Posts: 5
- Joined: Mon Sep 07, 2009 7:34 am
- Location: ASK Industries GmbH, Niederwinkling
Re: subterra URI to URL
[quote="hlacikd"]Hello,
it seems the Attachment URL is only filled when the attachment is reloaded after creating it.
Maybe just creating the attachment and then reloading it from the Workitem will be sufficient, but it is possible that it is required to commit the transaction before it is possible to properly reload the attachment.
Best Regards,
support@polarion.com[/quote]
Thanks for that hint, I've tried it a few days ago, but I never commit the transaction before I reload the attachment. I try it and give feedback then...
Greets
Tobi
it seems the Attachment URL is only filled when the attachment is reloaded after creating it.
Maybe just creating the attachment and then reloading it from the Workitem will be sufficient, but it is possible that it is required to commit the transaction before it is possible to properly reload the attachment.
Best Regards,
support@polarion.com[/quote]
Thanks for that hint, I've tried it a few days ago, but I never commit the transaction before I reload the attachment. I try it and give feedback then...
Greets
Tobi
-
- Posts: 5
- Joined: Mon Sep 07, 2009 7:34 am
- Location: ASK Industries GmbH, Niederwinkling
Re: subterra URI to URL
Thanks to lacikd,
the hint to commit the transaction was the winner :-). Now it works fine...
Greets
Tobi
the hint to commit the transaction was the winner :-). Now it works fine...
Greets
Tobi
Return to “Polarion Application Lifecycle Management (ALM)”
Who is online
Users browsing this forum: No registered users and 18 guests