Project

General

Profile

Actions

Bug #16923

closed

Cannot publish records in GRSF Admin VRE (unauthorized)

Added by Yannis Marketakis almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Jun 12, 2019
Due date:
% Done:

100%

Estimated time:

Description

I tried to publish a record in GRSF Admin today and encountered a not authorized message. The detailed message is shown below.

java.lang.Exception: Method failed: HTTP/1.1 500 Internal Server Error; Response body: {"id":null,"knowledge_base_id":null,"product_url":null,"error":"You are not authorized to create a product. Please check you have the Catalogue-Administrator role!"}
    at gr.forth.ics.isl.grsfservicescore.GrsfPublisher.publishRecord(GrsfPublisher.java:103)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishRecords(PublisherClient.java:761)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishGrsfStocks(PublisherClient.java:503)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishGrsfStock(PublisherClient.java:435)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.main(PublisherClient.java:984)
2019-06-12 16:24:38 ERROR PublisherClient:775 - An error occured while publishing records for grsf
gr.forth.ics.isl.grsfservicescore.exception.GrsfPublishingException: Fatal transport error
    at gr.forth.ics.isl.grsfservicescore.GrsfPublisher.publishRecord(GrsfPublisher.java:113)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishRecords(PublisherClient.java:761)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishGrsfStocks(PublisherClient.java:503)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishGrsfStock(PublisherClient.java:435)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.main(PublisherClient.java:984)

Can you please check?


Related issues

Blocks StocksAndFisheriesKB - Task #16880: Merge GRSF records (FIRMS - IOTC vs RAM)ClosedYannis MarketakisJun 05, 2019

Actions
Actions #1

Updated by Yannis Marketakis almost 6 years ago

  • Blocks Task #16880: Merge GRSF records (FIRMS - IOTC vs RAM) added
Actions #2

Updated by Luca Frosini almost 6 years ago

  • Status changed from New to In Progress

Can you please retry now?

Actions #3

Updated by Yannis Marketakis almost 6 years ago

I just tried. Still the same issue.

Actions #4

Updated by Francesco Mangiacrapa almost 6 years ago

Hi @marketak@ics.forth.gr,

the issue could be caused by a patch recently released to the CKAN APIs.
I just disabled such patch and now the publishing should work again (nothing else has been changed).
Could you kindly try again? Sorry for the inconvenience.

Actions #5

Updated by Yannis Marketakis almost 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Thanks for the update Francesco. It's fine now. I published a record properly.

Actions #6

Updated by Yannis Marketakis almost 6 years ago

  • Status changed from Closed to In Progress
  • Assignee changed from Luca Frosini to Francesco Mangiacrapa
  • % Done changed from 100 to 90

Hi Fransesco,

I just tried to publish some records in GRSF VRE, however I'm facing again the same issue.
Could you please check this out?

java.lang.Exception: Method failed: HTTP/1.1 500 Internal Server Error; Response body: {"id":null,"knowledge_base_id":null,"product_url":null,"error":"You are not authorized to create a product. Please check you have the Catalogue-Administrator role!"}
    at gr.forth.ics.isl.grsfservicescore.GrsfPublisher.publishRecord(GrsfPublisher.java:103)
    at gr.forth.ics.isl.grsfservicescore.clients.PublisherClient.publishGrsfRecordInPublicCatalog(PublisherClient.java:791)
    at gr.forth.ics.isl.grsfservicescore.clients.ApprovalClient.approveGrsfStock(ApprovalClient.java:136)
    at gr.forth.ics.isl.grsfservicescore.clients.ApprovalClient.main(ApprovalClient.java:225)
2019-07-26 11:58:13 ERROR PublisherClient:802 - An error occured while publishing record for grsf
Actions #7

Updated by Francesco Mangiacrapa almost 6 years ago

Hi Yannis,

Could you please retry now?

We have just updated the grsf-publishe-ws service instance (see at https://support.d4science.org/issues/16951#note-7) on production and it should fix (I hope definitively) the issue.
Let me know...

Actions #8

Updated by Yannis Marketakis almost 6 years ago

Thanks Fransesco.
It works without any issues.

Actions #9

Updated by Yannis Marketakis almost 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)