tracker issue : CFB-3797276

select a category, or use search below
(searches all categories and all time range)
Title:

Problem with link tags in views

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / cfjedimaster (Raymond Camden)

Created: 07/30/2014

Components: Extensions

Versions: 3.0

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: 3.0 Final / 299530

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Mac 10.9

Vote Count: 0

I've got a view where I attempted to use a link tag to add in bootstrap. For some reason, it never worked. But when I inlined the styles via a style tag, it did. This is what I was sending in the view html:

<html lang="en">
	<head>
		<link rel="stylesheet" href="/cflint/handlers/bootstrap.min.css" />
<style>
h2 { color: red; }
</style>
	</head>

	<body>
		<div class="container">
		<h2>CFLint for #title#</h2>
		<p>
		Hello world #serializeJSON(selection)#
		</p>
		<button type="button" class="btn btn-danger">Danger</button>
		</div>
	</body>
</html>

Note that the URL was hard coded, I'd normally make that dynamic in a extension. But it worked as a CFM in a regular request, just not via the extension API.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3797276

External Customer Info:
External Company:  
External Customer Name: cfjedimaster
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Please try removing '/' from href attribute value as <link rel="stylesheet" href="cflint/handlers/bootstrap.min.css" /> and let us know if it resolves. (Comment added from ex-user id:amkum)
Comment by Adobe D.
26886 | August 06, 2014 04:12:25 AM GMT
Nope, no good. I wouldn't expect that to work anyway. If CFB made a HTTP request to /cflint/handlers/runlint.cfm and the resulting html included a relative link, it would try to request: /cflint/handlers/cflint/etc
Comment by External U.
26887 | August 06, 2014 09:10:21 AM GMT
Ah, it may be a port issue. I switched to a full url (http://localhost/etc) and it worked. Now to make it dynamic.
Comment by External U.
26888 | August 06, 2014 09:11:44 AM GMT
Ok. So this is what I found. If my handler outputs this url, it fails: http://127.0.0.1/cflint/handlers/bootstrap.min.css Note that the url works fine in my browser. If I change it to http://localhost/cflint/handlers/bootstrap.min.css it works in CFB. So the question is - why can't code executed in a CF handler use the IP address?
Comment by External U.
26889 | August 06, 2014 09:16:53 AM GMT
Bug is fixed in ColdFusion Builder 2016. As of now we don't have any plans to provide update for ColdFusion Builder 3.0 Thank You Subir
Comment by Subir J.
26890 | July 21, 2016 04:53:43 AM GMT