|
So I'm working with a 3rd party API (why do I need to be ethical and not mention who???) but anyways, one of the parameters when opening a session is simply Name defined as type string with the comment "Session Name".
So I've got a test jig and I figured I'd give the session a name with a timestamp so in the product, I can see when my code created it as part of the testing process.
Like this:
"Name": "Session 3/6/2020 8:32:22 AM"
And I get back a this:
{"ErrorCode": 99996}
Seriously, WTF. I try the CURL example they provide (which is actually nice of them) and it works. After having been in this business for as many years as I have, that intuitive "OMG, please don't tell me they can't handle special characters in the name" feeling starts tingling in the fingers that want to reach for the battle axe.
Turns out / and : characters aren't allowed (and probably some other characters too). Dashes and dots are fine, so I instead:
"Name": "Session 3-6-2020 8.32.22 AM"
OK. WTF. What parser are they using, and why the elephant are they even parsing the content of the "name string"? Why would they care??? Someone actually wrote code to verify certain characters are disallowed?
!!!! AND WHY DIDN'T THEY DOCUMENT THAT !!!!
|
|
|
|
|
It's probably because they use the Name in the filename for the "telemetry" data that they forward to to their marketing and industrial-espionage departments.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Ding ding ding! I believe we have a winner.
|
|
|
|
|
So Marc has to check if the disallowed characters are: "*:<>?\|/ then we definitely have a winner.
If it's also +[] it's a zipfile.
|
|
|
|
|
They probably don't send the files by e-mail, but, just in case, I'd load it up with words that won't get through a SPAM filter.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
"Name" properties are usually alphanumeric only, leading something, no blanks. Used by the "framework".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
This AM I opened a left-over fortune cookie from last night's Take-Out Tofu Feast. The days of an actual fortune rather than wit and wisdom have been gone as far back as I can remember. I like the latter, better, anyway:
"Optimists believe we live in the best of worlds and pessimists fear this is so."
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 6-Mar-20 7:48am.
|
|
|
|
|
It's remarkable how often appending "in bed" to these is humorous.
|
|
|
|
|
So, it's been a long winter up north, has it?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Greg Utas wrote: It's remarkable how often appending "in bed" to these is humorous.
My gf (she's only a few years younger than me!) had never heard of that. I was floored!
|
|
|
|
|
The Norwegian variant is "sa brura" - i.e. "said the bride".
Adding that at (in)appropriate places may create some hillarious situations.
|
|
|
|
|
Fusion is in order: "said the bride in bed"!
|
|
|
|
|
Hi All,
Company policy is to lock everything down to a degree where it's next to impossible to do anything. So to use some tools we use on a regular basis (which were written in Delphi using stone tablets, back in the day!) we need to Admins on the PC's, which is at odds with IT security! So I am trying to run (I have managed to install it!) one of the Applications on a Windows 8 Laptop... I know I managed to get it running at one stage but how????
|
|
|
|
|
I believe Win8 also had compatability mode for older programs. Right-click on the executable and go into properties, or something, and chose compatibility mode and set to Win XP or earlier??? (or something like that - I don't remember Win8's exact steps).
|
|
|
|
|
Tried that, I think I did that the first time I installed it (and it worked!)
|
|
|
|
|
You probably did, but just in case, did you try running the (installed?) program as Administrator after the installation? (And running the installation as administrator?)
|
|
|
|
|
Try installing it in your users' documents folder. Unless it mucks with the registry, that may work.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Eddy Vluggen wrote: Try installing it in your users' documents folder. Unless it mucks with the registry, that may work. That'd be my guess. It's probably a permissions thing, so install it anywhere except the Program Files directories (or the Windows directory, of course).
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I may be confusing it with an UAC-issue, so it may not work. Guess we'll hear it in a bit.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
And that would be a no! But I 'don't need the app on that Laptop' famous last words...
|
|
|
|
|
glennPattonWork wrote: Company policy is to lock everything down
Spawn tickets to ICT each time something can not be done. Their policy, their responsibility. Your due diligence ends at the very moment you open a ticket, if deliveries are missed it can't be your fault.
After a handful of missed deliveries things will change.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Quote: After a handful of missed deliveries things will change. Well that's happened and no it's got tighter as we are less secure...
|
|
|
|
|
True dat.
And if the perception is that you're trying to work around their policies, then the tables will be turned against you.
And if there's nothing else you can do while things get fixed, track the time you're spending waiting for someone else to do their jobs. Email summaries.
|
|
|
|
|
Pretty much all you said. Been there...
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|