[Archivesspace_Users_Group] The ead_pdf link generated by plugin public_formats_resource_links does not work with AS 1.2
Mang Sun
mang.sun at rice.edu
Thu Apr 9 11:22:08 EDT 2015
Yes, Steven, by following your way, I changed line 47 from @output.close
to @output.rewind and now I see the problem is gone.
Good catch. Thank you very much.
Mang
On 4/8/2015 8:24 PM, Steven Majewski wrote:
>
> Sorry: I didn’t catch that distinction the first time.
> Running the development server, it also does not work for me under OSX.
>
> I can’t say that I totally understand what’s going on and why it would
> work
> in one environment and not another, but changing this one line made it
> work
> for me under devserver:
>
> *diff --git a/backend/app/lib/AS_fop.rb b/backend/app/lib/AS_fop.rb*
> *index 9b95762..a042cd9 100644*
> *--- a/backend/app/lib/AS_fop.rb*
> *+++ b/backend/app/lib/AS_fop.rb*
> @@ -44,7 +44,7 @@class ASFop
> res = SAXResult.new(fop.getDefaultHandler)
> transformer.transform(StreamSource.new(fo), res)
> ensure
> - @output.close
> + @output.rewind
> end
> @output
> end
>
>
>
> On Apr 8, 2015, at 3:35 PM, Mang Sun <mang.sun at rice.edu
> <mailto:mang.sun at rice.edu>> wrote:
>
>> Thank you Chris. I need to clarify that the problem I ever reported
>> is only with the development application (public interface) running
>> at 3001.
>> For the compiled, built and deployed applications, i don't see any
>> problem with this link. Today, I also cloned the newest plugin to
>> replace the existing one from GitHub, restarted all the development
>> applications and the problem is still there with the development
>> server (Public Interface) running at 3001. But again once the
>> applications got built and deployed (using "archivesspace.sh start"),
>> the problem is gone.
>> Mang.
>>
>> On 4/8/2015 2:59 AM, Chris Fitzpatrick wrote:
>>> Hi Everyone,
>>>
>>> It looks like the generate PDF as a background job in version 1.2.0
>>> broke the aspace-public-formats plugin PDF export feature.
>>> I've fixed the plugin here
>>> :https://github.com/archivesspace/aspace-public-formats
>>> If you need this feature, please remove the version of the plugin
>>> you have currently installed and replace it with the version on
>>> github and restart ASpace.
>>>
>>> Also, please note that the public-format plugin PDF feature will not
>>> work for large resources.
>>>
>>> Sorry about the inconvenience. Let us know if you have other issues
>>> or questions...
>>> b,chris.
>>>
>>> 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 Mang Sun<mang.sun at rice.edu>
>>> *Sent:*Tuesday, April 7, 2015 6:26 PM
>>> *To:*Archivesspace Users Group
>>> *Subject:*Re: [Archivesspace_Users_Group] The ead_pdf link generated
>>> by plugin public_formats_resource_links does not work with AS 1.2
>>>
>>> Thank you again Brad. I also have tested this version on MAC OS X
>>> and still see the same issue with the ead_pdf link of this plugin.
>>>
>>> Mang
>>>
>>>
>>> On 4/7/2015 6:15 AM, Brad Westbrook wrote:
>>>> Windows 7, Mang.
>>>>
>>>> Brad
>>>>
>>>> *From:*archivesspace_users_group-bounces at lyralists.lyrasis.org[mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org]*On
>>>> Behalf Of*Mang Sun
>>>> *Sent:*Monday, April 06, 2015 6:11 PM
>>>> *To:*Archivesspace Users Group
>>>> *Subject:*Re: [Archivesspace_Users_Group] The ead_pdf link
>>>> generated by plugin public_formats_resource_links does not work
>>>> with AS 1.2
>>>>
>>>> By the way, under which OS is your AS 1.2 running ? Mine is Redhat
>>>> 6.4.
>>>>
>>>> Mang
>>>> On 4/6/2015 12:47 PM, Brad Westbrook wrote:
>>>>
>>>> Hi, Mang
>>>>
>>>> I just successfully tested the public formats plugin for all
>>>> three options. I tested it in a localhost install using the
>>>> embedded Derby database.
>>>>
>>>> Brad W.
>>>>
>>>> *From:*archivesspace_users_group-bounces at lyralists.lyrasis.org
>>>> <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>[mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org]*On
>>>> Behalf Of*Mang Sun
>>>> *Sent:*Monday, April 06, 2015 1:15 PM
>>>> *To:*Archivesspace Users Group
>>>> *Subject:*Re: [Archivesspace_Users_Group] The ead_pdf link
>>>> generated by plugin public_formats_resource_links does not work
>>>> with AS 1.2
>>>>
>>>> Can somebody or the development team confirm whether the
>>>> public_formats_resource_links plugin still works with AS 1.2?
>>>>
>>>> Mang Sun
>>>> Rice U.
>>>> On 4/2/2015 10:49 AM, Mang Sun wrote:
>>>>
>>>> When clicking the ead_pdf link turned on by the
>>>> public_formats_resource_links plugin does not work with AS
>>>> 1.2 throwing the error message as follows. -Mang Sun
>>>> Rice U.
>>>>
>>>>
>>>> EOFError in PublicFormatsController#generate
>>>>
>>>> |Rails.root: /opt/download/ASpace/archivesspace-1.2.0/public|
>>>>
>>>>
>>>> Request
>>>>
>>>> *Parameters*:
>>>>
>>>> {"repo_id"=>"2",
>>>>
>>>> "type"=>"resources",
>>>>
>>>> "id"=>"116",
>>>>
>>>> "format"=>"ead_pdf"}
>>>>
>>>> Show session dump
>>>> <http://10.74.22.26:3001/repositories/2/resources/116/format/ead_pdf>
>>>>
>>>> _csrf_token: "PSHg/+xWc6vsA3SkFp5yNu544UvTf9agbMpz6ZY3ir0="
>>>>
>>>> session_id: "c419289cb412f46af571004e4b0c0830"
>>>>
>>>> Show env dump
>>>> <http://10.74.22.26:3001/repositories/2/resources/116/format/ead_pdf>
>>>>
>>>> GATEWAY_INTERFACE: "CGI/1.2"
>>>>
>>>> HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
>>>>
>>>> HTTP_ACCEPT_ENCODING: "gzip, deflate"
>>>>
>>>> HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.5"
>>>>
>>>> REMOTE_ADDR: "10.xx.xx.xx"
>>>>
>>>> SERVER_NAME: "10.xx.22.xx"
>>>>
>>>> SERVER_PROTOCOL: "HTTP/1.1"
>>>>
>>>>
>>>> Response
>>>>
>>>> *Headers*:
>>>>
>>>> None
>>>>
>>>> -----------------
>>>>
>>>> The Full trace is pasted as below.
>>>>
>>>>
>>>>
>>>> |org/jruby/RubyIO.java:2858:in `read_nonblock'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/protocol.rb:141:in `rbuf_fill'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/protocol.rb:122:in `readuntil'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/protocol.rb:132:in `readline'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:2779:in `read_chunked'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:2759:in `read_body_0'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:2719:in `read_body'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:2744:in `body'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:2681:in `reading_body'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:1330:in `transport_request'|
>>>>
>>>> |org/jruby/RubyKernel.java:1270:in `catch'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:1325:in `transport_request'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:1302:in `request'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:1295:in `request'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:746:in `start'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:1293:in `request'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/plugins/aspace-public-formats/public/controllers/public_formats_controller.rb:18:in `handle'|
>>>>
>>>> |/opt/download/ASpace/archivesspace-1.2.0/plugins/aspace-public-formats/public/controllers/public_formats_controller.rb:5:in `generate'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/implicit_render.rb:4:in `send_action'|
>>>>
>>>> |actionpack (3.2.19) lib/abstract_controller/base.rb:167:in `process_action'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/rendering.rb:10:in `process_action'|
>>>>
>>>> |actionpack (3.2.19) lib/abstract_controller/callbacks.rb:18:in `process_action'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:439:in `_run__487387345__process_action__240924115__callbacks'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `__run_callback'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:390:in `_run_process_action_callbacks'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:81:in `run_callbacks'|
>>>>
>>>> |actionpack (3.2.19) lib/abstract_controller/callbacks.rb:17:in `process_action'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/rescue.rb:29:in `process_action'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:30:in `process_action'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/notifications.rb:123:in `instrument'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/notifications/instrumenter.rb:20:in `instrument'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/notifications/instrumenter.rb:19:in `instrument'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/notifications.rb:123:in `instrument'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:29:in `process_action'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'|
>>>>
>>>> |actionpack (3.2.19) lib/abstract_controller/base.rb:121:in `process'|
>>>>
>>>> |actionpack (3.2.19) lib/abstract_controller/rendering.rb:45:in `process'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal.rb:203:in `dispatch'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'|
>>>>
>>>> |actionpack (3.2.19) lib/action_controller/metal.rb:246:in `action'|
>>>>
>>>> |org/jruby/RubyProc.java:271:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:36:in `call'|
>>>>
>>>> |journey (1.0.4) lib/journey/router.rb:68:in `call'|
>>>>
>>>> |org/jruby/RubyArray.java:1613:in `each'|
>>>>
>>>> |journey (1.0.4) lib/journey/router.rb:56:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:608:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/etag.rb:23:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/head.rb:14:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/params_parser.rb:21:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/flash.rb:242:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'|
>>>>
>>>> |rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:341:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:28:in `call'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:408:in `_run__1026630806__call__1019491275__callbacks'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `__run_callback'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:390:in `_run_call_callbacks'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/callbacks.rb:81:in `run_callbacks'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:27:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/reloader.rb:65:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'|
>>>>
>>>> |railties (3.2.19) lib/rails/rack/logger.rb:32:in `call_app'|
>>>>
>>>> |railties (3.2.19) lib/rails/rack/logger.rb:16:in `call'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/tagged_logging.rb:22:in `tagged'|
>>>>
>>>> |railties (3.2.19) lib/rails/rack/logger.rb:16:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/request_id.rb:22:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/runtime.rb:17:in `call'|
>>>>
>>>> |activesupport (3.2.19) lib/active_support/cache/strategy/local_cache.rb:72:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/lock.rb:15:in `call'|
>>>>
>>>> |actionpack (3.2.19) lib/action_dispatch/middleware/static.rb:63:in `call'|
>>>>
>>>> |railties (3.2.19) lib/rails/engine.rb:484:in `call'|
>>>>
>>>> |railties (3.2.19) lib/rails/application.rb:231:in `call'|
>>>>
>>>> |rack (1.4.5) lib/rack/content_length.rb:14:in `call'|
>>>>
>>>> |railties (3.2.19) lib/rails/rack/log_tailer.rb:17:in `call'|
>>>>
>>>> |puma-2.8.2 (java) lib/puma/server.rb:490:in `handle_request'|
>>>>
>>>> |puma-2.8.2 (java) lib/puma/server.rb:488:in `handle_request'|
>>>>
>>>> |puma-2.8.2 (java) lib/puma/server.rb:361:in `process_client'|
>>>>
>>>> |puma-2.8.2 (java) lib/puma/server.rb:254:in `run'|
>>>>
>>>> |org/jruby/RubyProc.java:271:in `call'|
>>>>
>>>> |puma-2.8.2 (java) lib/puma/thread_pool.rb:92:in `spawn_thread'|
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> Archivesspace_Users_Group mailing list
>>>>
>>>> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
>>>>
>>>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> Archivesspace_Users_Group mailing list
>>>>
>>>> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
>>>>
>>>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Archivesspace_Users_Group mailing list
>>>> Archivesspace_Users_Group at lyralists.lyrasis.org
>>>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>>
>>>
>>>
>>> _______________________________________________
>>> Archivesspace_Users_Group mailing list
>>> Archivesspace_Users_Group at lyralists.lyrasis.org
>>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>
>> _______________________________________________
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group at lyralists.lyrasis.org
>> <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150409/be88f6b8/attachment.html>
More information about the Archivesspace_Users_Group
mailing list