Skip to content

Conversation

@tomchiverton
Copy link
Contributor

Fixes #447

@netlify
Copy link

netlify bot commented Jun 2, 2025

Deploy Preview for taffy-docs canceled.

Name Link
🔨 Latest commit 049d481
🔍 Latest deploy log https://app.netlify.com/projects/taffy-docs/deploys/683e0602d0ad9a00080019ea

Copy link
Owner

@atuttle atuttle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! A couple of details to sort out...

core/api.cfc Outdated
<!--- Check for method tunnelling by clients unable to send PUT/DELETE requests (e.g. Flash Player);
Actual desired method will be contained in a special header --->
<cfset var httpMethodOverride = GetPageContext().getRequest().getHeader("X-HTTP-Method-Override") />
<cfset var httpMethodOverride = nullValue()/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullValue isn't available on ACF, especially not as far back as ACF8 which we still technically support. Could it be polyfilled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACF8 must be waaaaay out of Adobe support by now ( unofficial list https://www.lansweeper.com/blog/eol/adobe-coldfusion-end-of-life/ has it exiting support ten years ago). Surely any one stuck on it isn't going to worry that a future Taffy drops support ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well to be fair, even the latest ACF doesn't have nullvalue(), does it? (I wouldn't know, I stopped using ACF years ago...) what about switching to javaCast('null',0); instead?

core/api.cfc Outdated
Comment on lines 734 to 738
<cfset var httpMethodOverride = nullValue()/>
<cftry>
<cfset httpMethodOverride = GetPageContext().getRequest().getHeader("X-HTTP-Method-Override") />
<cfcatch type="any"></cfcatch>
</cftry>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also looks like you've duplicated the added lines, unless I'm missing something?

@tomchiverton
Copy link
Contributor Author

I've fixed the duplicated code, and just "null" should be supported in both ACF and Lucee ( https://coldfusion.adobe.com/2018/07/null-support-in-coldfusion-2018/ | https://docs.lucee.org/recipes/null-support.html )

@atuttle
Copy link
Owner

atuttle commented Jun 2, 2025

Bah, for that matter, we can just use the string "null" and check for that instead of isNull()

@atuttle atuttle added the Semver-Patch This change will necessitate a patch version bump label Jun 2, 2025
@atuttle atuttle merged commit 4caad88 into atuttle:main Jun 2, 2025
4 of 5 checks passed
@atuttle
Copy link
Owner

atuttle commented Jun 2, 2025

Merged, thanks again for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Semver-Patch This change will necessitate a patch version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermitant Cannot invoke "java.lang.Class.isPrimitive()" under Lucee 6.1.118

2 participants