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
Fixes #2571 - Deleted admin is recreated
Fixes #2502 - session expiration updates
Signo now allows to transparently prolong user session which gotexpired. Also when you now logout from Foreman you will end up in Signologin form. This brings some code clean up and test changes and smallSSO method API change.
Fixes #2372 - Strip non-digit characters from non-numeric OS versions
fixes #2550 Puppetclass search_by_host doesn't return all classes for an unknown host
Tests for puppetclass API searches on nonexistent hosts
Puppetclass search_by_host does not fail if Host does not belong to any Hostgroup
Puppetclass search_by_host query looks for distinct puppetclasses instead of pruning them afterwards...
fixes #2130 - normalize_hostname appends domainname to fqdn
When the trailing part of $fqdn doesn't match $domain, the normalize_hostnamefunction would append $domain onto the end of $fqdn, saving the host as$fqdn.$domain (Example: hostname.domain1.com.domain2.com)....
fixes #2440 remove unused files, code, unnecessary require statements
Fixes #2497 - Join to the fact_values table when a user fact-filter is applied
fixes #2478 - smart-variable in ENC stopped working
fixes #2486 - ensure facts import is idempotent when values are unchanged
fixes #2281 - don't allow admin flag to be removed from admin account
fixes #2220 - Suport hostgroup puppet classes parameters inheritance.
refs #2400 clean up tests so there are no orphaned foreign keys
fixes #2378 - added Minitest and other code cleanups
fixes #2433 - fix orchestration respond_to? test to work on ruby 2.0
fixes #2419 - disable DNS orchestration during host mailer tests
fixes #2417 - SSO abstractioning
Apache and Signo SSO reworked to a new general SSO concept.
You can use SSO service that comes with Katello for loggin in. It'sbased on OpenID protocol with slightly customized provider.
fixes #2263 search Hostgroup by label
fixes #2405 - disable DNS orchestration during TFTP tests, causing timeouts
flot charts
Use flot charts instead of highcharts.flot charts license is more friendly.
This version of the code is feature compatible with the old charts,including:pie: drill-down and expend.stacked charts: zoom, hide series in legend.all types has tooltips....