fixes #4639 - array in lookup_value incorrectly displayed in form
(cherry picked from commit 801a90d196d363aadae7bf2be9347ff6e46e0471)
Fixes #4680 - Don't append periods to unqualified unmanaged hosts
(cherry picked from commit 014c9ab5eb9bb9b8d655d48a8ccd540613390788)
fixes #4314 - ignore default scope ordering on host search by puppet class
(cherry picked from commit a44dd0943b5ccc2c2e9a0ce264e4b2f38b5edd4d)
Conflicts: app/models/concerns/hostext/search.rb
Fixes #4221: add :dependent => :destroy for compute profiles on compute resource
(cherry picked from commit 6e7682a967c9e3dc37d244146b22d7dc2cb7103e)
fixes #4298 - ldap auth should accept parens in firstname or surname
(cherry picked from commit 3065cbc2df440c77e20abeed9fa525221fdcb12f)
fixes #2726 - smart class parameter override fails validation
(cherry picked from commit cfc2bb662f49d8216c2388ab35dd87af295474d0)
fixes #4234 - cannot edit host's puppet parameters
(cherry picked from commit 130f301a508ae31549145e5fa9b176f42dc20995)
fixes #4005 - ensure standalone Rabl.render works outside of a controller
(cherry picked from commit 858708c466398ac5f42bb1bb0fd6c1e531e31385)
fixes #2866 - Changing a hostgroup name doesn't update associated Smart Variable matchers
(cherry picked from commit 709ad8d6f425e0817d3faef2cc629af1458cb1c9)
refs #3697, #3701 - fix test with multiple validation failures
(cherry picked from commit dbaa47b718a25992065cc6e0afea78bed1171f7e)
fixes #3697, #3701 - more comprehensive field validations
(cherry picked from commit 4bae5cedb8ab562b6c397234c5cb1cfd604fde74)
fixes #3867 - Wrong Compute Resource type shown on overview
(cherry picked from commit 2ebd2f227aef16da62c7884065bb9b47a846c9a3)
fixes #2231 - hostgroup deletion is restricted to hostgroups without children
(cherry picked from commit 8c68024ac619121312680ee8afc467857155e71d)
fixes #3906 - Support for Junos ZTP
fixes #3099 - Adding parameters to locations and organizations
Fixes #3962 - Refactor class overwriting
fixes #3178 - add feature for compute profiles for hostgroups and hosts
fixes #3528 - Populate first name, last name, and email, if available.
fixes #1489 - add AIX family and facts importer support
fixes #3930 - refactoring of edit_self implementation.
fixes #3752 - move data population from migrations into seed script
fixes #3339 - nested fact support, allow fact importers to be registered by plugins
fixes #3885 - sort IDs in test to prevent random failures
Fixes #3721 - Map OS family to a display variant
Fixes #3720 - Add description field to operatingsystem
Fixes #3753 - always use main_app to determine paths for running an isolated namespace plugin
fixes #3794 - don't validate IP address that's later provided by a CR
fixes #3673 - auditing added to ptable w/ test
fixes #3510 - plugin interface for registering a plugin, updated menu system
fixes #2763 - correcting doco links
fixes #3493 - check if auto user reg is allowed for auth source
Fixes #3468 - Move token expiry to scope to avoid FK issues
fixes #3312 - support /users/extlogin as a login page based on REMOTE_USER
refs #3569 - fix URL validation test error on merge
Fixes #3569, #3210 - Use port from foreman_url for templates
fixes #3597 - removing rr gem, make tests consistent by using just mocha
Fixes #3182 - Make IP optional in some circumstances
fixes #3205 - Extract and refactor report importing logic
This patch extracts all report importing logic into seperate importer and status classes.long term this could allow:
1. aliases methods for async operations2. different types of reports imports (based on reporting type).
fixes #1830 - auto assign puppet proxy if its not defined upon facts/reports event
[REFACTOR] fixes #2967 - refactored Fact Importer
Based on Dmitri Dolguikh <dmitri@appliedlogic.ca> original patch.
- renamed original fact_importer class to fact_parser class- moved fact handling logic to its own fact_importer class- fact importer now assumes single-value facts...
fixes #3364 Add option to disable automatc host creation when a report is received
Fixes #3293 add FactoryGirl to tests
fixes #2818 - validation of OS families in ptables
fixes #3170 - dash separated mac address notation
fixes #3222 - nil the certname when handling certs if UUID certs have now been disabled
fixes #3206 - prevent any user including admin from creating lookup_value with fdqn= or hostgroup= if host/hostgroup does not exist
fixes #3190 - Fix STI auditable_type - Audit should say updated Location/Organization rather than updated Taxonomy and ComputeResource should not use STI class
fixes #3048 - Non Admin user fails to override parameters when creating new host
fixes #3160 - sanitize host/host group names in lookup_value associations (CVE-2013-4386)
fixes #2756 - update setting descriptions at startup
Fixes #3177: a 'G' suffix is automatically appended to libvirt volume capacity value if none was specified
Fixes #2244: avoid constantly changing os.release_name
Tests thanks to Sam Kottler <shk@redhat.com>
fixes #3091 - strip leading and trailing whitespace before_save on names of all objects
fixes #2810 - more restful API v2 JSON responses in puppetclasses
NOTE: breaking changes to API v2 api/lookup_keys does not exist, replaced by api/smart_variables and api/smart_class_parameters
fixes #3089 - Updating settings causes settings page to load again within the page
fixes #2764 - settings defined in settings.yaml file are now read-only
fixes #3093 - invalid data for a subnet address or mask returns "is invalid and is invalid"
fixes #3097 - foreign key error on deleting trend
fixes #3090 - new puppetclass creation fails when adding smart variable
Fixes #3043 - Support Signo on API level using BasicAuth
fixes #2400 migration to remove orphaned records and add foreign keys constraints to database tables
fixes #2179 - validate the owner type, preventing the API returning errors for a wrong owner_type
fixes #2260 Allow ERB in ENC global / class parameters
Adds code to parse the global & class parameters, and adds a setting (default true) to disable this if needed. Also has some tests.
Fixes #3045 - Skip empty log arrays
Fixes #2414 - Move puppet report processing code to the report processor
This creates a API route for POST:/api/reports which matches the GETformat for reports. Tests are updated, with the report model testsmoving to the puppet-foreman module (along with the report fixtures).
fixes #2863 - restrict APIs to resources that a user is permitted to manage (CVE-2013-4182)
fixes #1745 - make puppetmaster hostname/domain stripping behaviour configurable
Refs #2414 - Remove Puppet from facts API and Settings
Reports are still in progress and will come in a later PRDB schema is updated to not need puppet/rails
fixes #2932 - add find_by_fullname for Operatingsystem
fixes #2988 - merge authentication code, enables REMOTE_USER auth on new API controllers
fixed #2970 - modified inflections.rb to handle 'Puppetclass'.singularize and classify
fixes #2431 - handle fact uploads where host is missing $fqdn
fixes #863 - added ldap_filter to LDAP auth sources to filter lookups using RFC 2254 filters
Fixes #2721 - Allow use of spice for libvirt via checkbox per-CRFixes #1711 - Add a per-CR checkbox for console passwords
fixes #2424 - encrypts compute resource password
fixes #2871 - params search works with nested hostgroups
Fixes #2501 - Allow my_hosts scope to include all subclasses of Host::Base
fixes #2788 - changes to fixtures and tests in preparation for testing adding/removing puppetclasses
fixes #2693 - don't cause handle_ca error when no Puppet CA associated with host
fixes #2801 - remove LOWER in default_scope of models that could cause PG error
fixes #2812 - method lookup_values_attributes= not defined in Host::Managed (NameError)
fixes #2739 - add ActiveSupport::Concern syntax to mixins
fixes #2779 - permission problem with non-admin adding puppetclasses to hosts and hostgroups
fixes #1770 - Refactored rdeckfacts definition to use facts_hash
fixes #2142 add Smart Parameters and Smart Class Parameters to API v2
fixes #2747 - scoped search lambda takes one argument
fixes #1963 - prevent host creation when facts are uploaded via new setting
fixes #2707 - host save fails for non-admin if host has a BMC interface
fixes #2645 - non-admin users can now create smart variables
Fixes #2722 - Support for crossdomain auth
Newest Signo support authentication across more domains. We just need tolook not only to a cookie but parse parameters for getting username.
fixes #2690 - undefined method gsub! for nil:NilClass on fact import
fixes #2484 - host, hostgroup, and BMC passwords were overwritten as blank
fixes #2685 incorrect and inefficient regexp checking medium name format
It takes eternity to compute something like this:
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa b" =~ /\A(\S+\s?)+\Z
Also "this is wrong " was not matched
fixes #2334 - location matcher doesn't match on smart parameters
fixes #2660 - settings, improve tests and fixes
- added string settings type- fixed tests previously commented out due to CI failures- more tests for core settings functionality- parsing of string values enhanced and extracted to a separate method- setting value to nil when it equals default is back...
fixes #2631 - fix remote code execution via controller name (CVE-2013-2121)
fixes #2630 - restrict assignment of roles to those a user has (CVE-2013-2113)
Fixes #2615 - failed to save host group
If there was current organization selected, organizations got doubledwhich prevented save. Fixed and added test for this part.
fixes #2386 - permission failure on create_lookup_value
fixes #2285 - subnet validation - length of addresses, strip whitespace and fix common typos