Exception: WSDL::PathRestrictionError

Inherits:
FatalError show all
Defined in:
lib/wsdl/errors.rb

Overview

Raised when a file path violates sandbox restrictions.

This occurs when a WSDL or schema import attempts to access files outside the allowed directory tree. This protection prevents path traversal attacks where malicious schemaLocation attributes could read arbitrary system files.

Examples:

begin
  # WSDL with malicious import: schemaLocation="../../../../etc/passwd"
  client = WSDL::Client.new('/app/wsdl/malicious.wsdl')
rescue WSDL::PathRestrictionError => e
  puts "Blocked file access: #{e.message}"
end

See Also: