Can't upload attachments.
Hi,
When trying to upload attachments in a WI that has the attribute "Filed Against" assigned to a category that is related to a Team Area, the attachment fails to get uploaded.
I have some preconditions and follow ups (I extended the functionality) at the workitem save operation.
Please help me identifying the mistake I´m incurring into.
Thank you.
When trying to upload attachments in a WI that has the attribute "Filed Against" assigned to a category that is related to a Team Area, the attachment fails to get uploaded.
I have some preconditions and follow ups (I extended the functionality) at the workitem save operation.
Please help me identifying the mistake I´m incurring into.
Thank you.
2 answers
Create a new role for the uset that uploads. Disable all operational behavior for that role. Upload and enable one behavior at a time.
If you are unable to provide the details, that is the only way.
Eben the Plain Java Client Libraries can print exceptions that appen due to preconditions.
If you are unable to provide the details, that is the only way.
Eben the Plain Java Client Libraries can print exceptions that appen due to preconditions.
Comments
Hi,
Finally found what was wrong with the extensions.
First the response to your questions:
Finally found what was wrong with the extensions.
First the response to your questions:
- It didn't show the error on the web client, which is where the problem happened.
- It happened at every browser.
- I did delete browser history and cache.
The problem was that attachments also trigger the WorkItemSave operation when created. It seems that they behave as WI for some things but not for others.
I added the following line of code after validating the operation of every extension:
if (saveParameter.getNewState() instanceof IWorkItem) {
Maybe it should be added to the extensions workshop as we made some test with that plugin in order to understand what we did wrong and it also happened.
Thank you