Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, Master
-
7.1.x, 7.0.x
-
Committed
-
2
-
3
Description
Issue
Input fields in /api/jsonws page for functions do not support multiline/newline-inclusive parameters
Steps to reproduce
- Start a clean bundle
- Login as admin
- Add the Calendar widget into the home page
- Click on My Calendars > ▼ > Manage Calendars
- Click on Options icon and HOVER on Import
From the linked URL, note the xxx_calendarId value (30824) - Go to http://localhost:8080/api/jsonws
- Select Calendar as Context name
- Click on Import-Calendar method
- Fill in the calendarId retrieved on step 5
- Set type as "ics"
- Open the attached ics file in your favorite editor
- Convert all linebreaks to \n so it's a 1 line string
- Copy that string into the Data field and Invoke
Actual results
Field is rendered as Input tag and execution fails
The following error is displayed
"Error at line 1:Expected [VCALENDAR], read [VCALENDAR\\nMETHOD]"
Expected results
Field is rendered as Textarea tag and execution succeeds
Example of expected:
- Open the browser's development tools
- Change the <input to <textarea to convert the Data field to a textarea
- Paste the contents of the ics file (as is, with linebreaks)
- Invoke
- Execution is successful
Reproduced in
7.0.x (b0c47f5f335c5d32d2949b6bd54374eadc428c23)
7.1.x (cc4ecbff91a19e3206cc5bdca1060804cee6a8b1)
master (d6e4f5c6b99aa7c69b8907d0377d458cd2ff22ad)
* Please see Zendesk Support tab for further comments and attachments.