Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated
### Removed
### Fixed
- SDAP-539: Fixed issue where similar S3 paths could lead to granules being incorrectly and quietly ignored in very specific scenarios
- Fixed issue with Collection Manager Docker build failing due to setuptools issue
### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,10 @@ def _handle_event(self, event):
else:
modified_time = int(os.path.getmtime(path))
self._loop.create_task(self._callback(path, modified_time, collection))
else:
logger.error(f'Event for file {path} will be discarded as it is not owned by the collection it '
f'matched to: {collection.dataset_id} ({collection.path}). This should not happen. '
f'Please report this with the relevant logs and collection configuration to '
f'dev@sdap.apache.org or https://issues.apache.org/jira/projects/SDAP/issues/')
except IsADirectoryError:
return
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async def _get_s3_files(self, path: str):
return new_cache

def _get_object_key(full_path: str):
key = urlparse(full_path).path.strip("/")
key = urlparse(full_path).path.lstrip("/")
return key


Expand Down