API bugs: Creating a character returns "401: Invalid OAuth Request" if "bio" contains wiki links or tags are present

c_t's Avatar

c_t

21 Jan, 2014 01:18 AM

I've written a bulk importer using the Character API to import a hundred or so character profiles into OP, but I've run into some show-stopping bugs:

When POSTing to http://api.obsidianportal.com/v1/campaigns/CAMPAIGN_ID/characters.json, the character API will return a 401 response code with a body of "Invalid OAuth Request" if:

  • the bio field contains square brackets (e.g., [ or ] ).
  • the tags field is present as an array (which includes [ and ] ).

This test succeeds:

{
 "character" : {
  "name" : "test dude",
  "author_id" : "#{author_id}",
  "bio"  : "Some text about this dude."
 }
}

This test fails with a 401/Invalid OAuth Request :

{
 "character" : {
  "name" : "test dude 2",
  "author_id" : "#{author_id}",
  "bio"  : "A [[link]] about this dude."
 }
}

This test also fails with a 401/Invalid OAuth Request :

{
 "character" : {
  "name" : "test dude 3",
  "author_id" : "#{author_id}",
  "bio"  : "Some text about this dude.",
  "tags" : [ "bathrobe", "abides" ]
 }
}

I was surprised that this test succeeds with a 201 response (since the API requires tags to be an array). However, the resulting Character entry does not include the tag:

{
 "character" : {
  "name" : "test dude 4",
  "author_id" : "#{author_id}",
  "bio"  : "Some text about this dude.",
  "tags" : "bathrobe"
 }
}
  1. 1 Posted by Travis19 on 21 Jan, 2014 01:58 AM

    Travis19's Avatar

    Hi, thanks for contacting Obsidian Portal. I will get a trouble ticket open for this issue and see if our developers can ferret this out for you.

  2. 2 Posted by c_t on 11 Feb, 2014 09:51 AM

    c_t's Avatar

    Thanks, Travis. Has there been any word from the developer(s) on this?

  3. 3 Posted by Travis19 on 14 Feb, 2014 03:49 PM

    Travis19's Avatar

    I have not heard anything yet. I will check in with them. Sorry for the delay.

  4. 4 Posted by c_t on 24 Oct, 2014 10:14 PM

    c_t's Avatar

    Both failure scenarios still result in spurious 401/Invalid OAuth Request errors.

    Could someone prod the developer(s) to take a look at this? I'd like to be able to import tagged characters with wiki links in their bios.

  5. 5 Posted by c_t on 21 Jan, 2015 03:12 AM

    c_t's Avatar

    one year has gone by

    and all the bugs are still here

    but where are the dev(s)?


  6. 6 Posted by Travis19 on 23 Jan, 2015 07:03 PM

    Travis19's Avatar

    Hoping to have some news on this soon. Thanks for your above-and-beyond patience.

  7. Travis19 closed this discussion on 16 Jun, 2015 12:22 AM.

  8. killervp re-opened this discussion on 16 Jun, 2015 06:21 PM

  9. 7 Posted by killervp on 16 Jun, 2015 06:21 PM

    killervp's Avatar

    Please don't close things that are not resolved.

  10. 8 Posted by Travis19 on 16 Jun, 2015 11:50 PM

    Travis19's Avatar

    Added to the next dev meeting.

  11. 9 Posted by c_t on 17 Jun, 2015 04:29 AM

    c_t's Avatar

    Thanks for keeping this issue open, killervp and Travis19.

    If the next dev meeting is an open triage, I'd be glad to attend. When is it scheduled?

  12. 10 Posted by c_t on 07 Sep, 2015 03:08 AM

    c_t's Avatar

    Checking in after another ~3 months; did the dev meeting happen already? Is this issue on their radar?

  13. 11 Posted by alex_redeye on 07 Sep, 2015 07:57 PM

    alex_redeye's Avatar

    Thanks for popping this back up. We are working on an audit of the tickets system as there has been an extended period where items were not being addressed. This is being corrected. I have added this on to my list to get compiled into the total issues and addressed.

  14. 12 Posted by c_t on 11 Mar, 2016 10:40 PM

    c_t's Avatar

    Checking in after another ~6 months—how has the listing, compiling, and addressing gone?

  15. Support Staff 13 Posted by OPSupport3 on 14 Mar, 2016 02:33 PM

    OPSupport3's Avatar

    Hey c_t,

    I am getting the tech team to look into this.

    Could you give me about a week to follow up?

Discussions are closed to public comments.
If you need help with Obsidian Portal please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac