Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backend/frontend] Fix creation and edition of SHA512 in File Observable (#issue/3917) #4100

Merged
merged 6 commits into from
Aug 23, 2023

Conversation

SarahBocognano
Copy link
Member

@SarahBocognano SarahBocognano commented Aug 18, 2023

Proposed changes

  • Add the SHA-512 missing everywhere in the platform (especially in the format.js)

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@@ -403,7 +403,7 @@ const StixCyberObservableEditionOverviewComponent = ({
<Field
component={TextField}
variant="standard"
name="hashes.SHA-512"
name="hashes_SHA-512"
label={t('hash_sha-512')}
Copy link
Member

@Archidoit Archidoit Aug 21, 2023

Choose a reason for hiding this comment

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

missing translation (or useless 't' if it shouldn't be translated)

Copy link
Member

Choose a reason for hiding this comment

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

because I noticed the file attributes are never translated :
image

@yassine-ouaamou yassine-ouaamou added the filigran team use to identify PR from the Filigran team label Aug 21, 2023
@Archidoit
Copy link
Member

Remaining error in WorkbenchFileContent.jsx :
image

@Archidoit
Copy link
Member

Peut-tu donner des exemples de valeurs valides pour les 'hashes' ? J'essaie de tester l'édition d'un stix file mais je ne sais pas trop quoi rentrer pour avoir un format valide.
image

@yassine-ouaamou
Copy link
Member

Peut-tu donner des exemples de valeurs valides pour les 'hashes' ? J'essaie de tester l'édition d'un stix file mais je ne sais pas trop quoi rentrer pour avoir un format valide. image

@Archidoit You can use alienvault for md5, sha1, sh256: https://otx.alienvault.com/browse/global/indicators?include_inactive=0&sort=-modified&page=1&limit=10&type=FileHash-MD5
For sha512, you can generate hashes from this website: https://emn178.github.io/online-tools/sha512.html

@yassine-ouaamou
Copy link
Member

I think it could be interesting if we translate:
hash_sha-512 -> SHA512, hash_sha-256 -> SHA265, etc

@SarahBocognano
Copy link
Member Author

Comments fixed

@yassine-ouaamou
Copy link
Member

The label is correct for all the languages except english where it is still hash_sha-*

@Archidoit
Copy link
Member

Archidoit commented Aug 22, 2023

Can you also translate the attributes of StixFile edition form that are not? (maybe at least the ones with '_' in their name)
image

@SarahBocognano : I'd rather not, because those are the direct attributes of the StixFile schema, and they not appears in the form

@SamuelHassine SamuelHassine merged commit 4c64331 into master Aug 23, 2023
6 checks passed
@SamuelHassine SamuelHassine deleted the issue/3917 branch August 23, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants