URL in task/resource notes is duplicated

Hi Aspose team,

using following code:

string oldText = "";
string newText = "";

Project prj = new Project(@“1.mpp”);
ChildTasksCollector collector = new ChildTasksCollector();

TaskUtils.Apply(prj.RootTask, collector, 0);

foreach (Task tsk in collector.Tasks)

{

oldText = tsk.Get(Tsk.NotesText);

if (oldText != null)

{

newText = oldText.Replace("Google", "ASPOSE");

}

else

{

newText = oldText;

}

//tsk.Set(Tsk.NotesText, newText);

}

prj.Save(@"output.mpp", Aspose.Tasks.Saving.SaveFileFormat.MPP);

}


I am only looping through task notes (same applies also to resources).
When I save document (nothing is change it it) I can see that URL, for example, www.google.com is now changed to "HYPERLINK www.google.com www.google.com".

I attached original document 1.mpp and also output document output.mpp.

Can you please check?

Btw. this is not happening if I have only text in notes field.

P.S. I also attached project.

BR,
Oliver

One remark - duplication is added already when I am reading task note.
Somehow this does not work properly.

Hi Oliver,

We are working over your query and will soon share our feedback with you.

Hi,

do you have linked ticket number here?

Thanks,
Oliver

Hi Oliver,

Could you please confirm to us if the following sample code executes to completion at your end with the latest version of Aspose.Tasks for .NET 8.7.0? At our end, the test never ends and seems to be stuck in a loop towards the end of the program while saving the file to disc. Please confirm to us if you are using the latest version of the API or some older version. We’ll investigate the issue further in light of your feedback.

Sample Code:

Project prj = new Project(@“1.mpp”);

prj.Save(@“output.mpp”, Aspose.Tasks.Saving.SaveFileFormat.MPP);

Hi Kashif,

yes, I am using the latest version 8.7.0.

BR,
Oliver

And, yes, it saves file (see output.mpp) but with duplicated note entries.

Hi again,

sorry with documents 0.mpp and 1.mpp Save does not work. I already have second ticket.
Problem with duplicated links and additional text is with 2.mpp file.

Can you please change code to process 2.mpp (I just attached document)?

Thanks,
Oliver

Hi Oliver,

I was able to reproduce this issue at my end using the latest version of Aspose.Tasks for .NET 8.7.0 and have logged it as TASKS-34222 in our issue tracking system for further investigation by our product team. We’ll update you here once there is some information available in this regard.

The issues you have found earlier (filed as TASKS-34222) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.