Thank you very much! Tao
From: "Creel, James Silas" <[email protected]> Date: Tuesday, June 14, 2016 at 11:15 AM To: Tao Zhao <[email protected]>, DSpace Technical Support <[email protected]> Subject: Re: [dspace-tech] Re: Is this the correct command to update item metadata through REST API? Hi Tao, You could try deleting tomcat¹s server-side cache for the webapp. Look under [tomcat-dir]/work/Catalina/localhost/rest. James From: <[email protected]> on behalf of Tao Zhao <[email protected]> Date: Friday, June 10, 2016 at 4:18 PM To: DSpace Technical Support <[email protected]> Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [dspace-tech] Re: Is this the correct command to update item metadata through REST API? Now I found even I restart tomcat the old metadata was still there. : -( So how can I restart/reload to adopt the new updated matadata for the items? Thanks, Tao On Thursday, June 9, 2016 at 1:56:32 PM UTC-5, helix84 wrote: > > Seems like you're running into this issue because you're running DSpace 5.3: > > > > https://jira.duraspace.org/browse/DS-2692 > <https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.duraspace.org_brows > e_DS-2D2692&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_PxkyYW > noGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=fKeZ7x2FdDKpIYGJ > 9fqWonhEYNj-GW_gaIrfNmXrrnk&e=> > > > > It is described here in comments: > > > > https://github.com/DSpace/DSpace/pull/1007 > <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DSpace_DSpace > _pull_1007&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_PxkyYWn > oGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=2J5WLfNZvUvmR0Drz > 8iwfkpNKQgzfBDh3jgjNWxPRac&e=> > > > > The solution would be to upgrade to 5.4 (or better, to 5.5 which includes a > critical security fix for XMLUI). > > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > <https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.duraspace.org_displ > ay_DSPACE_Mailing-2BList-2BEtiquette&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD > 8ofDtKmseXi7TXu4l-_PxkyYWnoGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1ps > O6KMqM&s=B-tIddFiYNmqHJYfUPSRRgD1nSua-pYYi9-PXie0txI&e=> > > > > > > On Thu, Jun 9, 2016 at 6:40 PM, Tao Zhao <[email protected] <javascript:> > > wrote: >> >> Just found out what happened: >> >> The actual metadata has been changed after the command was executed. I can >> see the updated metadata if I open the web page with the browser with the >> handle ID. >> >> However, if I execute the command curl >> https://abcd.org/rest/items/39850/metadata >> <https://urldefense.proofpoint.com/v2/url?u=https-3A__abcd.org_rest_items_398 >> 50_metadata&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_PxkyY >> WnoGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=ObyGguaCWjNN-P >> yJiTw2V6kpTivWLogdVxCkWmSz7yQ&e=> I still get the old metadata information. >> >> Anyone can help me? >> >> Thanks. >> >> >> >> On Thursday, June 9, 2016 at 10:15:44 AM UTC-5, Tao Zhao wrote: >>> >>> curl -X PUT -H "Content-Type: application/json" -H "Accept: >>> application/json" -H "rest-dspace-token: >>> b2fcc846-64fa-42b4-a21a-040caac986db" --data '[{"key":"dwc.npdg.homestate", >>> "value":"OK", "language":""}]' https://abcd.org/rest/items/39850/metadata >>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__abcd.org_rest_items_39 >>> 850_metadata&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_Pxk >>> yYWnoGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=ObyGguaCWjN >>> N-PyJiTw2V6kpTivWLogdVxCkWmSz7yQ&e=> >>> >>> I tried this but it did not give me any response information and either >>> change the metadata. >>> >>> Thanks a lot, >>> >>> Tao >> >> -- >> You received this message because you are subscribed to the Google Groups >> "DSpace Technical Support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:> . >> To post to this group, send email to [email protected] <javascript:> >> . >> Visit this group at https://groups.google.com/group/dspace-tech >> <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_group >> _dspace-2Dtech&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_Px >> kyYWnoGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=1_OPVWOjUK6 >> 0OPn0nvs4u4_KqWom8E2AhI9_Dya2s2Y&e=> . >> For more options, visit https://groups.google.com/d/optout >> <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_opt >> out&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_PxkyYWnoGE_B1 >> XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=BsqgLp_4coCdtfUL1fyBuE >> u8Olp1jx0IMk5XWK6q928&e=> . > -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_grou p_dspace-2Dtech&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_ PxkyYWnoGE_B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=1_OPVWOj UK60OPn0nvs4u4_KqWom8E2AhI9_Dya2s2Y&e=> . For more options, visit https://groups.google.com/d/optout <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_op tout&d=AwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=V6tqD8ofDtKmseXi7TXu4l-_PxkyYWnoGE_ B1XhiAjg&m=Z6C3joRJ7i83hssydfY2-4NSMP4Zg1NKpm1psO6KMqM&s=BsqgLp_4coCdtfUL1fy BuEu8Olp1jx0IMk5XWK6q928&e=> . -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
