[Archivesspace_Users_Group] Puma caught this error: exceeded available parameter key space (RangeError)

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Thu Dec 4 15:54:12 EST 2014


Yeah, I actually have seen that before...it's a Rack thing, which is limiting the number of  parameter keys submitted ( the default is limited 65536 ). uh...here's the description of it =>

https://github.com/rack/rack/issues/318


So, you could break up the JSON, or you could increase the

Rack::Utils.key_space_limit to something much higher, although as the github issue suggests could leave you more open to a DOS attack ( since someone could just throw big wads of JSON at you and your web server will die just trying to serialize it ).


Might be good to have this added to the config.rb so people can tweak the number when they want to do an import?




Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Steven Majewski <sdm7g at virginia.edu>
Sent: Thursday, December 4, 2014 9:01 PM
To: Archivesspace Users Group (archivesspace_users_group at lyralists.lyrasis.org)
Subject: [Archivesspace_Users_Group] Puma caught this error: exceeded available parameter key space (RangeError)


Ever seen this ?  Any idea what this error message means ?  — Steve Majewski


curl -H "X-ArchivesSpace-Session: 8ebd995c8155efcc516a53f99ed5315010fec1cd7fe606fb507b054c70482d0b" "-d @imports/UVA-SC/viu00005.json http://localhost:4567/repositories/2/batch_imports”

Puma caught this error: exceeded available parameter key space (RangeError)
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:464:in `[]='
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:111:in `normalize_params'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:96:in `parse_nested_query'
org/jruby/RubyArray.java:1613:in `each'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:93:in `parse_nested_query'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/request.rb:332:in `parse_query'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/request.rb:209:in `POST'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/request.rb:221:in `params'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:789:in `call!'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:780:in `call'
app/main.rb:249:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/nulllogger.rb:9:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/head.rb:9:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:124:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:1417:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:1499:in `synchronize'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:1417:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:490:in `handle_request'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:488:in `handle_request'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:361:in `process_client'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:357:in `process_client'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:254:in `run'
org/jruby/RubyProc.java:271:in `call'
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/thread_pool.rb:92:in `spawn_thread'URL http://localhost:4567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20141204/703dd3ff/attachment.html>


More information about the Archivesspace_Users_Group mailing list