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

[BUG]: PHP warning Undefined array key "read_only" in getPatchValidFeatures() #1162

Open
jessevz opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working server Hashtopolis API/Server related

Comments

@jessevz
Copy link
Contributor

jessevz commented Dec 18, 2024

Version Information

0.14.3

Hashcat

No response

Description

In the getPatchValidFeatures() function of the AbstractModelAPI.class.php, the features are checked on weter they are readonly. But the getFormFields() function of the model routes is used to build the features. The problem is that unlike in features here there is no read_only property, resulting in the undefined key warning. As a solution, this should be added to all the form fields.

But we might have to rethink form fields entirely because now in the Swagger documentation, the form fields will be added to the get results, but that is incorrect.

@jessevz jessevz added bug Something isn't working server Hashtopolis API/Server related labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Hashtopolis API/Server related
Projects
None yet
Development

No branches or pull requests

1 participant