Skip to content

Conversation

@priyank-bhuva-crestdata
Copy link

This PR includes all changes from Open PR by aams-eam.

Other bug fixes and enhancements:

  • Support of default_pagination_limit and max_pagination_limit parameters for manifest and objects get endpoints to avoid errors because of large response size.
  • Fixed opentaxii-create-account command to support admin argument.
  • Fixed add_objects method to define modified time and spec_version parameters if not provided in POST data.
  • Fixed delete object operation to delete objects from database.
  • Bug fix to return correct spec_version value in response instead of object type.

aams-eam and others added 20 commits December 25, 2023 23:23
- Added example on how to define accounts with permissions for taxii2
  and taxii1.
- Fixed authentication for taxii2. Now accounts can be defined to access
  private collections with 'read' or 'modify' access.
When a collection that does not exist is used in a data-configuration
file, a warning is produced
If no credentials are provided and you try to access a public
collection, there is an error. Now it has been fixed.
Also expanded the example for taxii2 data-configuration-accounts
The script can be used to test push, pull, and subscribe functionality
with taxii2-client
docker-compose.yml was missing version and services.
@eric-eclecticiq eric-eclecticiq self-requested a review November 13, 2025 12:08
Copy link
Contributor

@eric-eclecticiq eric-eclecticiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contributions. There are many unrelated changes. I would prefer to split the changes in multiple MRs:

This PR includes all changes from #267.

See #267 (review)

Support of default_pagination_limit and max_pagination_limit parameters for manifest and objects get endpoints to avoid errors because of large response size.

See #278 (review).

Fixed opentaxii-create-account command to support admin argument.

Fixed with #294

Fixed add_objects method to define modified time and spec_version parameters if not provided in POST data.

See #280 (fixed) and #274

Fixed delete object operation to delete objects from database.

Fixed by #275

Bug fix to return correct spec_version value in response instead of object type

Fixed by #276

print('cannot find account with given username')


def delete_account(argv=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. If you could open a dedicated PR with a test, it could be merged.

except ImportError:
from sqlalchemy.ext.declarative import DeclarativeMeta

selected_db = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ?

@eric-eclecticiq
Copy link
Contributor

Sorry for the late review, and thank you for your contributions. In the meantime, a lot of fixes have already landed and for the remaining items I would prefer dedicated PRs to simplify the review process. In any case, a good description of the change and new/updated tests are a requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants