Topic
  • 6 replies
  • Latest Post - ‏2013-04-16T11:49:39Z by kabr
kabr
kabr
115 Posts

Pinned topic getFullHostName perm no longer supported in 9.4

‏2013-03-15T11:22:23Z |
Hi all,

after installing v9.4 some of my scripts throw the error
"the PERM (getFullHostname) is no longer supported"
but the DXL Reference Manual that comes with 9.4 is still the 9.3 version which says:

fullHostname
Declaration
string fullHostname(void)
Operation
Gets the fully qualified hostname of the machine on which the perm is executed.

Does anybody happen to know which perm replaces the fullHostName in 9.4?

thanks
Karl
Updated on 2013-03-19T08:13:02Z at 2013-03-19T08:13:02Z by Mathias Mamsch
  • SystemAdmin
    SystemAdmin
    3180 Posts

    Re: getFullHostName perm no longer supported in 9.4

    ‏2013-03-15T12:10:06Z  
    Hi Karl,

    I don't have 9.4 available currently, but:
    Perhaps this is just a typo?
    getFullHostname <-> fullHostname
    BR
    Mike
  • llandale
    llandale
    3035 Posts

    Re: getFullHostName perm no longer supported in 9.4

    ‏2013-03-15T17:17:15Z  
    Hi Karl,

    I don't have 9.4 available currently, but:
    Perhaps this is just a typo?
    getFullHostname <-> fullHostname
    BR
    Mike
    I see no such "getFullHostname" in v9306. I see these two give similar results.
    • print (fullHostname()) "\n"
    • print (hostname) "\n"

    I see this produces [-R-E- DXL: <Line:3> the PERM (GetServerHost) is no longer supported]
    • print (getServerHost_(hostname()) "\n"

    -Louie

    I note with curiosity "fullHostname" must have the brackets ().
  • kabr
    kabr
    115 Posts

    Re: getFullHostName perm no longer supported in 9.4

    ‏2013-03-18T09:58:37Z  

    No, it's not a typo.

    When I type

    print(fullHostname()) "\n"
    


    as Louie suggested,
    I get

    -R-E- DXL: <Line:1> the PERM (getFullHostname) is no longer supported
    -I- DXL: execution halted

    Updated on 2014-01-06T10:41:59Z at 2014-01-06T10:41:59Z by iron-man
  • llandale
    llandale
    3035 Posts

    Re: getFullHostName perm no longer supported in 9.4

    ‏2013-03-18T15:05:21Z  
    • kabr
    • ‏2013-03-18T09:58:37Z

    No, it's not a typo.

    When I type

    <pre class="javascript dw" data-editor-lang="js" data-pbcklang="javascript" dir="ltr">print(fullHostname()) "\n" </pre>


    as Louie suggested,
    I get

    -R-E- DXL: <Line:1> the PERM (getFullHostname) is no longer supported
    -I- DXL: execution halted

    Several of us have parsed the DOORS.exe file and extracted ALL the valid perms. The one in question looks like this:
    • string fullHostname(void) getFullHostname

    So we see there is a "fullHostname" function with "void" parameter, and returns a variable of type string. We also see there is a comment "getFullHostname" which I've seen used as a representation in the debugger, and I now see is used in this error message.

    -Louie

    Will someone please explain the difference between these two function definitions:
    • string fullHostname(void) {whatever}
    • string fullHostname() {whatever}
  • Mathias Mamsch
    Mathias Mamsch
    2152 Posts

    Re: getFullHostName perm no longer supported in 9.4

    ‏2013-03-19T08:13:02Z  
    • llandale
    • ‏2013-03-18T15:05:21Z
    Several of us have parsed the DOORS.exe file and extracted ALL the valid perms. The one in question looks like this:
    • string fullHostname(void) getFullHostname

    So we see there is a "fullHostname" function with "void" parameter, and returns a variable of type string. We also see there is a comment "getFullHostname" which I've seen used as a representation in the debugger, and I now see is used in this error message.

    -Louie

    Will someone please explain the difference between these two function definitions:
    • string fullHostname(void) {whatever}
    • string fullHostname() {whatever}

    Louie:

     

    Will someone please explain the difference between these two function definitions:
     
        string fullHostname(void) {whatever}
        string fullHostname() {whatever}
    



    There is no difference from DXL side here. However I had some weird crash bugs with code that used the (void) parameter in function lists, so I would recommend to never use (void) parameters from DXL code. I cannot say however if this also affects the perms.

    Regards, Mathias



     

     


    Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

     

    Updated on 2014-01-06T10:42:14Z at 2014-01-06T10:42:14Z by iron-man
  • kabr
    kabr
    115 Posts

    Re: getFullHostName perm no longer supported in 9.4

    ‏2013-04-16T11:49:39Z  

    I finally got a response from Rational Client Support on this (well actually I got the reply last week, but I had to wait for the Great New Changes to be implemented).

    They say, that indeed the perm getFullHostname was removed in v9.4 without a new perm replacing it.

    Therefore it has to be added back in a future release.

    regards

    Karl