NASA-AMMOS / NASA-AMMOS/plandev

Aerie Gateway Plan Upload Allows Activities with duplicate Ids

Open
#1,697 1 comment 0 reactions 1 assignee View on GitHub

@cohansen is already working on this.

Since Aug 6, 2025.

bug
Dominant language
Java
Stars
128
Forks
33
Avg merge
1d 17h
Merged PRs (30d)
12

Description

Checked for duplicates

Yes - I've already checked

Is this a regression?

No - This is a new bug

Version

3.4.0

Describe the bug

I upload an external plan to Aerie through the Gateway, the upload is successful even if different activities inside my plan have the same id. Specifically in my instance, I was referring to one of these overlapping id as an anchor id for another activity, the database just seemed to revert the anchor id to null and rewrite the activity ids and continue. I believe the appropriate behavior in this scenario is for an error to be thrown and all database changes to be reverted.

Reproduction

Upload a plan through the gateway where multiple activities have the same id attribute. For an exact replica of the situation, add an activity that refers to an overlapping id as an anchor id.

Logs

System Info
Uploaded through the Gateway on localhost.
Severity

Minor

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.