IntelligenceBank API v3 removed icon retrieval.

Created on 8 June 2022, over 2 years ago
Updated 17 June 2024, 5 months ago

Problem/Motivation

While attempting to make this module work for my organization, I was able to download assets via the connector using the v3 API, but, ran into an issue concerning the thumbnail attached to resource assets.

Steps to reproduce

Install and enable
- ib_dam:ib_dam
- ib_dam:ib_dam_media
Create media types for all of the types of media you wish to map
Map image to image, and so on.
Get to where you need to log into your instance of intelligence bank
Find an image
Click Download
See error

Bad IntelligenceBank API request detected: Client error: `GET https://apius.intelligencebank.com/webapp/1.0/icon?p10=&p20=&type=file&name=` resulted in a `424 Failed Dependency` response: {"message":"Invalid request or server error"}

Unable to fetch data from IntelligenceBank API, bad response
Unable to save local file:
This value should be of the correct primitive type.
Bad IntelligenceBank API request detected: Client error: `GET https://apius.intelligencebank.com/webapp/1.0/icon?p10={}&p20={}&type=file&name={}` resulted in a `424 Failed Dependency` response: {"message":"Invalid request or server error"}

When I look up the end-point for this, I find the upgrade path from v2 to v3
https://intelligencebank.atlassian.net/wiki/spaces/APIDOC/pages/14262600...

Thumbnail Icon (GET) -> Folders List (GET)

Thumbnail Icon (GET) -> Resources List (GET)

Thumbnail icons are now returned as a field of folder or resource object (โ€œthumbnailโ€).

As far as I can tell, there isn't an easy way to convert this from v2 to v3, and on top of that, it isn't actually necessary (for images at least.)

Additionally, we should allow redirecting to a specific page after media is downloaded.

Proposed resolution

Remove thumbnail download for v3 api calls

๐Ÿ› Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States trackleft2 Tucson, AZ ๐Ÿ‡บ๐Ÿ‡ธ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024