Skip to content

Commit 9efe21b

Browse files
authored
Merge pull request #367 from NASA-PDS/fix/365-warn-nonexistent-ingress-paths
Warn user and exit when nonexistent ingress paths are supplied
2 parents 9581c8f + cc3dd03 commit 9efe21b

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
**Defects:**
88

9+
- DUM does not verify file path for weblog uploads [\#365](https://github.com/NASA-PDS/data-upload-manager/issues/365)
910
- DUM v2.4.2 CloudWatch Logs SerializationException Errors [\#352](https://github.com/NASA-PDS/data-upload-manager/issues/352) [[s.medium](https://github.com/NASA-PDS/data-upload-manager/labels/s.medium)]
1011

1112
## [v2.5.5](https://github.com/NASA-PDS/data-upload-manager/tree/v2.5.5) (2026-04-22)

src/pds/ingress/client/pds_ingress_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,14 @@ def main(args):
935935
)
936936
close_path_progress_bar()
937937

938+
nonexistent_paths = [p for p in args.ingress_paths if not os.path.exists(os.path.abspath(p))]
939+
if nonexistent_paths:
940+
for p in nonexistent_paths:
941+
logger.warning(Color.yellow("Path does not exist and will be skipped: %s"), p)
942+
if not resolved_ingress_paths:
943+
logger.error("No valid ingress paths found. Exiting.")
944+
sys.exit(1)
945+
938946
# Initialize the summary table, and populate the "unprocessed" table the set
939947
# of resolved ingress paths
940948
SUMMARY_TABLE = initialize_summary_table()

0 commit comments

Comments
 (0)