Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add external tools now that https://github.com/IQSS/dataverse/pull/6059 has been merged #103

Closed
pdurbin opened this issue Sep 17, 2019 · 0 comments
Assignees

Comments

@pdurbin
Copy link
Member

pdurbin commented Sep 17, 2019

Now that IQSS/dataverse#6059 has been merged, the develop branch requires that external tools have a "scope" of dataset or file, like this:

{
  "displayName": "Fabulous File Tool",
  "description": "Fabulous Fun for Files!",
  "scope": "file",
  "type": "explore",
  "toolUrl": "https://fabulousfiletool.com",
  "contentType": "text/tab-separated-values",
  "toolParameters": {
    "queryParameters": [
      {
        "fileid": "{fileId}"
      },
      {
        "key": "{apiToken}"
      }
    ]
  }
}

Otherwise, you'll get errors like this:

TASK [dataverse : enable wholetale externaltool] *******************************
fatal: [localhost]: FAILED! => {"changed": false, "connection": "close", "content": "{"status":"ERROR","message":"scope is required."}", "content_length": "49", "content_type": "application/json", "date": "Tue, 17 Sep 2019 21:01:35 GMT", "json": {"message": "scope is required.", "status": "ERROR"}, "msg": "Status code was 400 and not [200]: HTTP Error 400: Bad Request", "redirected": false, "server": "GlassFish Server Open Source Edition 4.1", "status": 400, "url": "http://localhost:8080/api/admin/externalTools", "x_powered_by": "Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition 4.1 Java/Oracle Corporation/1.8)"}

Pre-release docs are here: https://github.com/IQSS/dataverse/blob/cf4b864136ac1dc9b5e2793aea4a8428113d40c7/doc/sphinx-guides/source/api/external-tools.rst

@donsizemore donsizemore self-assigned this Sep 23, 2019
donsizemore added a commit that referenced this issue Sep 23, 2019
pallinger pushed a commit to dsd-sztaki-hu/dataverse-ansible-deprecated that referenced this issue Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants