server icon indicating copy to clipboard operation
server copied to clipboard

[BUG]: Decreasing "Max length of a hash" returns HTTP 500

Open injust opened this issue 3 months ago • 2 comments

Version Information

0.14.6

Hashcat

No response

Description

I'm trying to decrease the max hash length to a value that is certainly higher than any existing hash.

However, the server errors with HTTP 500.

injust avatar Oct 01 '25 22:10 injust

Can you post what error message is shown in the log of the server (e.g. docker logs hashtopolis-backend) when you try to do this? There should be something like a stacktrace error or similar.

s3inlc avatar Oct 08 '25 07:10 s3inlc

PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/hashtopolis-backend/src/inc/Util.class.php:1357
Stack trace:
#0 /var/www/hashtopolis-backend/src/inc/Util.class.php(1357): PDO->commit()
#1 /var/www/hashtopolis-backend/src/inc/utils/ConfigUtils.class.php(88): Util::setMaxHashLength()
#2 /var/www/hashtopolis-backend/src/inc/handlers/ConfigHandler.class.php(13): ConfigUtils::updateConfig()
#3 /var/www/hashtopolis-backend/src/config.php(22): ConfigHandler->handle()
#4 {main}
  thrown in /var/www/hashtopolis-backend/src/inc/Util.class.php on line 1357

injust avatar Oct 12 '25 00:10 injust