Skip to main content
New Idea

List or Workaround Invalid Strings

Related products:Freshservice
  • December 11, 2024
  • 1 reply
  • 23 views

caleb
Apprentice
Forum|alt.badge.img

Fresh Service does not seem to allow copy-pasting of Linux file paths in form fields, instead raising a permissions error.

 

I know this is likely a directory traversal safeguard but impedes our ability to add script snippets to notes or documentation.

/etc/hosts
/etc/passwd
/etc/passwd-
/etc/shadow
/etc/shadow-
/etc/group
/etc/group-

It would be nice to have a list of invalid strings to avoid raising tickets when the permissions error is raised, or to have a workaround implemented so we don’t have to modify these paths in our notes.

1 reply

adamhahnderson
Community Debut
  • Community Debut
  • December 11, 2024

It actually took me quite a while to figure out what the source of this issue even was. The error raised when trying to input an invalid string is a “Not authorized to perform this action“ error message which implies a permissions problem.

Our team was investigating this as a potential access issue when the error was in fact related to the text trying to be input into a change request “Reason for change” field.

It was not until I started to input and try and save each field individually that I realized that the issue might have been related to text in the field. The description I was trying to paste into the text box was a over a hundred words and contained both “/ etc / shadow” and “/ etc / passwd“ file paths due to the change submitted being related to changes to those files on a linux OS.

 

I would suggest either publishing a list of forbidden strings or at least some sort of error message that implies that the problem is related to the text being submitted as opposed to a generic permissions error.