Send the osTicket ticket text as base64, not percent-encoded
A test ticket sent to a real osTicket arrived with every space shown as %20. osTicket takes the message's type from an RFC 2397 data URL and strips the "data:" part, but leaves percent-encoded text as it is. The message is now sent as base64 (data:text/plain;charset=utf-8;base64,...), which osTicket decodes (it is how it takes attachments), and which works whether or not a given osTicket version decodes percent-encoding. The stand-in osTicket in the test had decoded the percent-encoding, which is why this wasn't caught: the test now requires base64 and fails if any percent-encoding is in the message. INTEGRATIONS.md says the ticket API is only partly verified against a real osTicket, and what that first test showed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aec553f122
commit
5072cee519
3 files changed
+14
-9
No files matched your search
+6
-4
@@ -162,10 +162,12 @@ the dashboard views themselves load fine.
|
||||
"user" is this app, so an acknowledgement would only bounce) and osTicket's own staff alert on or off as you choose.
|
||||
- **What it can't do:** close, reopen, or comment on a ticket — osTicket's API has no such endpoint. A ticket opened
|
||||
here is yours to close in osTicket.
|
||||
- **Not verified against a real osTicket** — built from osTicket's published API documentation and tested against a
|
||||
stand-in server that checks what is sent (the key header, the JSON fields, the message encoding, and how each
|
||||
answer — created, refused key, bad request, redirect — is handled). If osTicket rejects a ticket, "Send a test
|
||||
ticket" shows the reason it gave.
|
||||
- **Only partly verified against a real osTicket.** It was built from osTicket's published API documentation and
|
||||
tested against a stand-in server that checks what is sent (the key header, the JSON fields, the message encoding,
|
||||
and how each answer — created, refused key, bad request, redirect — is handled). The first test ticket sent to a
|
||||
real osTicket arrived with every space shown as `%20`: osTicket takes the message from a `data:` URL but does not
|
||||
decode percent-encoding, so the message is now sent as base64, which it does decode (not yet re-checked against a
|
||||
real osTicket). If osTicket rejects a ticket, "Send a test ticket" shows the reason it gave.
|
||||
|
||||
### phpIPAM
|
||||
|
||||
|
||||
Reference in new issue
Block a user