Uploaded image for project: 'Lucee Development'
  1. LDEV-1773

cfapplication action=update doesn't change application name

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.7.53
    • Labels:
      None
    • Sprint:

      Description

      In CommandBox we're using JSR-223 now which doesn't use Application.cfc, but instead sets all application metadata with code like:

      <cfapplication 
      	action="update"
      	name 				= "CommandBox CLI"
      	sessionmanagement 	= "false"
      	applicationTimeout = "#createTimeSpan( 999999, 0, 0, 0 )#"
      	mappings="#mappings#">
      

      However the application name is showing up as an empty string both in the variable

      application.applicationname
      

      As well as the output of this:

      getApplicationMetadata().name
      

      There are actually CommandBox modules that depend on the Application name to detect if they're being run from the CLI so this is a breaking change in CommandBox to not have an app name.

        Attachments

          Activity

            People

            • Assignee:
              michael1 Michael Offner
              Reporter:
              bdw429s Brad Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: