Jira (FACT-1921) Facter java class incorrectly using "FACTERDIR" environment variable

0 views
Skip to first unread message

Thomas Montague (JIRA)

unread,
May 7, 2019, 4:30:03 PM5/7/19
to puppe...@googlegroups.com
Thomas Montague created an issue
 
Facter / Bug FACT-1921
Facter java class incorrectly using "FACTERDIR" environment variable
Issue Type: Bug Bug
Affects Versions: FACT 3.13.1, FACT 3.13.0, FACT 3.12.4, FACT 3.12.3, FACT 3.12.2, FACT 3.12.1, FACT 3.12.0, FACT 3.11.8, FACT 3.11.7, FACT 3.11.6, FACT 3.11.5, FACT 3.11.4, FACT 3.11.3, FACT 3.11.2, FACT 3.11.1, FACT 3.11.0, FACT 3.10.0, FACT 3.9.6, FACT 3.9.5, FACT 3.9.4, FACT 3.9.3, FACT 3.9.2, FACT 3.9.0, FACT 3.6.10, FACT 3.6.9, FACT 3.6.8, FACT 3.6.7, FACT 3.6.6, FACT 3.6.5, FACT 3.6.4, FACT 3.6.3, FACT 3.6.2, FACT 3.6.1, FACT 3.6.0, FACT 3.y
Assignee: Unassigned
Created: 2019/05/07 1:29 PM
Labels: facter java
Priority: Normal Normal
Reporter: Thomas Montague

The [Facter java shim|https://github.com/puppetlabs/facter/blob/master/lib/Facter.java.in#L14] for jruby incorrectly uses the "FACTERDIR" environment variable as it includes the "${LIBFACTER_INSTALL_DESTINATION}" in the expected value for the variable.

This is different from the [facter.rb implementation|https://github.com/puppetlabs/facter/blob/master/lib/facter.rb.in#L34] which defaults to a relative path to "${CMAKE_INSTALL_PREFIX}" and the "${LIBFACTER_INSTALL_DESTINATION}" string is appended to it for the location of "libfacter.so".

 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Thomas Montague (JIRA)

unread,
May 7, 2019, 4:31:04 PM5/7/19
to puppe...@googlegroups.com
Thomas Montague updated an issue
Change By: Thomas Montague
The [Facter java shim| [ https://github.com/puppetlabs/facter/blob/master/lib/Facter.java.in#L14] ] for jruby incorrectly uses the "FACTERDIR" environment variable as it includes the "${LIBFACTER_INSTALL_DESTINATION}" in the expected value for the variable.

This is different from the [facter.rb implementation|
[ https://github.com/puppetlabs/facter/blob/master/lib/facter.rb.in#L34] ] which defaults to a relative path to "${CMAKE_INSTALL_PREFIX}" and the "${LIBFACTER_INSTALL_DESTINATION}" string is appended to it for the location of "libfacter.so".

 

 
Add Comment Add Comment
 

Thomas Montague (JIRA)

unread,
May 7, 2019, 4:34:02 PM5/7/19
to puppe...@googlegroups.com

Michael Smith (JIRA)

unread,
May 10, 2019, 4:25:03 PM5/10/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
May 14, 2019, 9:57:03 AM5/14/19
to puppe...@googlegroups.com
Mihai Buzgau commented on Bug FACT-1921
 
Re: Facter java class incorrectly using "FACTERDIR" environment variable

Hi Thomas Montague looks like the PR for this ticket: https://github.com/puppetlabs/facter/pull/1785 got merged. Can this ticket be closed?
Thank you for your contribution!

Thomas Montague (JIRA)

unread,
May 16, 2019, 8:13:03 AM5/16/19
to puppe...@googlegroups.com

Jean Bond (JIRA)

unread,
Jun 17, 2019, 5:15:03 PM6/17/19
to puppe...@googlegroups.com
Jean Bond commented on Bug FACT-1921

Mihai Buzgau, the docs note doesn't tell me anything about what behavior users might have encountered or what this changes for them. Can you tell me what users need to know about this change, please?

Jean Bond (JIRA)

unread,
Jun 18, 2019, 2:34:02 PM6/18/19
to puppe...@googlegroups.com
Jean Bond updated an issue
 
Change By: Jean Bond
Release Notes: Bug Fix Not Needed

Jean Bond (JIRA)

unread,
Jun 18, 2019, 2:35:03 PM6/18/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages