none
[CSOM bug] Project Description overwrites Project Name RRS feed

  • Question

  • Hi

    I believe this might be a bug in CSOM, but please correct me if I'm wrong.

    When creating a project with the following code:

    ProjectCreationInformation newProject = new ProjectCreationInformation();
    newProject.Name = sourceEntity.name;
    newProject.Id = Guid.NewGuid();
    context.Projects.Add(newProject);
    QueueJob createProjectJob = context.Projects.Update();
    context.WaitForQueue(createProjectJob, 30);

    Later on, when I set the remaining fields on the DraftProject and publish it with the following code:

    DraftProject project = (DraftProject)onlineEntity;
    QueueJob publishJob = project.Publish(false);
    context.WaitForQueue(publishJob, 15);

    If I go to the PWA to check the project, the description overwrites the name, and the description becomes empty. I've put a breakpoint on the Draft project before doing the publish, and the description and names are correct, but then the PWA doesn't reflect these values.

    As I see no reason why this should happen, it leads me to believe that this is a bug in CSOM. However, it works fine if I also set the description in the ProjectCreationInformation object, but this should not be mandatory.
    How and where should I report this bug?

    Wednesday, July 13, 2016 12:35 PM