Project

General

Profile

Fehler #686

AP, LP, AP-Max, LP-Max müssen limitiert werden

Added by C. Biggles 8 months ago. Updated about 1 month ago.

Status:
In Bearbeitung
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Endgerät:
Endgerät-Typ:
Browser:
Browser-Version:
Betriebsystem:
Betriebssystem-Version:

Description

Momentan gibt es keine obere Grenze für diese Werte. Wenn man sehr große Werte dafür einträgt, dann erfolgt beim Generieren der LP- bzw. AP-Zähler ein NoMemoryError.

History

#1 Updated by C. Biggles 8 months ago

  • Target version set to 1.4.5

#2 Updated by C. Biggles 3 months ago

Und auch die anderen Werte brauchen Obergrenzen, wenn Spassvögel versuchen, hier größtmögliche Werte einzugeben.

An ActiveRecord::StatementInvalid occurred in weapons#update:

Mysql2::Error: Unknown column 'Infinity' in 'field list': UPDATE `weapons` SET `wert` = Infinity, `updated_at` = '2020-04-15 10:36:32' WHERE `weapons`.`id` = xxx

Request

URL: xxx/weapons/lanze-des-ursprungs
Parameters: {"_method"=>"put", "weapon"=>{"wert"=>"10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000"}, "authenticity_token"=>"xxx", "action"=>"update", "controller"=>"weapons", "character_id"=>"legolas--3", "id"=>"lanze-des-ursprungs"}

#3 Updated by C. Biggles about 1 month ago

  • Status changed from Neu to In Bearbeitung
  • Assignee set to C. Biggles
  • % Done changed from 0 to 100

Also available in: Atom PDF