Skip to main content
This topic has been closed for replies.

2 replies

Charlie Arehart
Community Expert
Community Expert
November 8, 2021

Just a point of clarification on this 2012 post (which comes up among the first results in searching for applicationgetmetadata): things changed back then, and as I write in Nov 2021 the function is indeed named GetApplicationMetadata, as clarified in its doc page. One can also see that it's the latter and not the former, in a call to getFunctionList.

 

There was indeed back and forth back in 2012 on this, in the early days of CF10. Some pointed out how GetApplicationMetadata was inconsistent with existing functions following the pattern *getmetadata (such as ArrayGetMetaData, CacheGetMetadata, ImageGetMetadata, SessionGetMetadata, StructGetMetadata and more).

 

Then again, there are also other functions that did then and do still follow the get*metadata pattern (GetComponentMetadata, GetMetadata, GetVFSMetadata, and more).

 

Language inconsistencies can be annoying, of course, especially when we are guessing at a function's name based on others like it. (Further, some would want to note that the first character of all functions should be lowercase, to follow common practice in other languages, but at least you can write it that way if you prefer, as CF doesn't care about case of function names). And the bug report pointed to by Aaron below shows further how this topic went back and forth back in that timeframe of CF10's release.

 

Again, my main point here it to clarify that the "final" state of things (since 2012) has been that this function is GetApplicationMetadata.

/Charlie (troubleshooter, carehart. org)
itisdesign_-_AH
Inspiring
June 7, 2012

applicationGetMetadata() is the correct new function name in CF10 final, but it currently doesn't work. This is CF10 bug #3207841 filed at: https://bugbase.adobe.com/index.cfm?event=bug&id=3207841

Thanks,

-Aaron