Question: REST API - a small bug in jobs endpoint
0
gravatar for sfischer
3.0 years ago by
sfischer • 50
United States
sfischer • 50 wrote:

This is a minor bug, easily worked around.   But, I thought I should still report it.

When i call this endpoint: https://usegalaxy.org/api/jobs/bbd44e69cb8906b508c63628260d9ebe

part of the JSON returned describes the param values used:

"params": {
    "__workflow_invocation_uuid__": "\"8f68ffc68a1611e59ae0005056a52a46\"",
    "delimiter": "\"T\"",
    "dbkey": "\"?\"",
    "columnList": "\"c1,c2\"",
    "chromInfo": "\"/galaxy-repl/localdata/chrom/?.len\""
},

It seems like a bug to enclose the values in escaped quotes.  First, it makes the JSON hard to read.  But more importantly, if I take an exact value supplied by this job, eg, \"c1,c2\" and use it as input to a call to api/workflows to run a new workflow, the parameter value throws an error.

I think the values returned by the job should be consistent with using them in a workflow invocation request.

I can workaround this by trimming away the quotes.

Steve

api • 665 views
ADD COMMENT • link • modified 3.0 years ago by Dannon Baker ♦ 3.7k • written 3.0 years ago by sfischer • 50
0
gravatar for Dannon Baker
3.0 years ago by
Dannon Baker ♦ 3.7k
United States
Dannon Baker ♦ 3.7k wrote:

Yep, this looks like a bug -- all of those params are double quoted.  I'll take a look when I finish up the other workflow invocation bit we chatted about, and post back here.

ADD COMMENT • link modified 3.0 years ago • written 3.0 years ago by Dannon Baker ♦ 3.7k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 171 users visited in the last hour