[FOLIO-1689] Incorrect handling on non-ASCII characters in module descriptors Created: 09/Jan/19  Updated: 03/Jun/20  Resolved: 09/Jan/19

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: P3
Reporter: Adam Dickmeiss Assignee: John Malconian
Resolution: Done Votes: 0
Labels: ci, platform-backlog, sprint54
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to OKAPI-695 Incorrect handling on non-ASCII chara... Closed
Sprint:

 Description   

Something is wrong with the pipeline. SEE OKAPI-695 Closed



 Comments   
Comment by John Malconian [ 09/Jan/19 ]

Indeed, a problem with POST in the jenkins pipeline. Specifying UTF-8 for JSON in the Content-Type and Accept headers resolves the issue.

[malc@ip-10-36-20-124 vars]$ curl http://folio-registry.aws.indexdata.com/_/proxy/modules/mod-gobi-1.1.0-SNAPSHOT.47
{
  "id" : "mod-gobi-1.1.0-SNAPSHOT.47",
  "name" : "GOBIĀ® Module",
  "requires" : [ {
    "id" : "orders",
    "version" : "1.0"
  }, {
    "id" : "configuration",
    "version" : "2.0"
  }, {
    "id" : "material-types",
    "version" : "2.2"
  }, {
    "id" : "locations",
    "version" : "2.1 3.0"
  }, {
    "id" : "vendor",
    "version" : "1.0"
  } ],
  "provides" : [ {
    "id" : "gobi",
    "version" : "1.0",
    "handlers" : [ {
      "methods" : [ "GET" ],
      "pathPattern" : "/gobi/validate",
      "permissionsRequired" : [ "gobi.item.post" ]
    }, {
      "methods" : [ "POST" ],
      "pathPattern" : "/gobi/orders",
      "permissionsRequired" : [ "gobi.item.post" ],
      "modulePermissions" : [ "orders.item.post", "inventory-storage.material-types.collection.get", "inventory-storage.locations.collection.get", "vendor.collection.get", "configuration.entries.collection.get" ]
    } ]
  } ],
  "permissionSets" : [ {
    "permissionName" : "gobi.item.post",
    "displayName" : "gobi - post order",
    "description" : "Creates an order"
  }, {
    "permissionName" : "gobi.all",
    "displayName" : "gobi - all permissions",
    "description" : "Entire set of permissions needed to use gobi",
    "subPermissions" : [ "gobi.item.post" ]
  } ],
  "launchDescriptor" : {
    "dockerImage" : "folioci/mod-gobi:1.1.0-SNAPSHOT.47",
    "dockerPull" : true,
    "dockerArgs" : {
      "HostConfig" : {
        "PortBindings" : {
          "8081/tcp" : [ {
            "HostPort" : "%p"
          } ]
        }
      }
    }
  }
}
Generated at Thu Feb 08 23:15:10 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.