Compressed JavaScript file is not working when running on Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function that
seems to work fine on Windows 2008 and Railo community 3.0.3.003 final. But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the function
fails to work. I tried putting the code inline or in a js include file but
they all don’t seem to work. I’m not using any .htaccess files for this
site. I look in the Lucee admin panel to see if there are any compression
options that might be causing this but I can’t seem to find anything. Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike

Point of clarification: when you say “compressed” are you talking about the web server gziping the file or do you mean something more along the lines of “condensed”, where things like CRLF’s are stripped out?–
Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <@Michael_Aushana>
To: “Lucee” lucee@googlegroups.com
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when running on Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function that
seems to work fine on Windows 2008 and Railo community 3.0.3.003 final. But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the function
fails to work. I tried putting the code inline or in a js include file but
they all don’t seem to work. I’m not using any .htaccess files for this
site. I look in the Lucee admin panel to see if there are any compression
options that might be causing this but I can’t seem to find anything. Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the minified JS file changes from the server to the client? That’s extremely unusual. Are you using a standard Installer build with Apache as the web server? Or… maybe describe your setup a bit more…–
Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <@Michael_Aushana>
To: “Lucee” lucee@googlegroups.com
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say was
the JavaScript is minified. I don’t know what tool the previous dev used to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking about
the web server gziping the file or do you mean something more along the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when running on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function that
seems to work fine on Windows 2008 and Railo community 3.0.3.003 final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include file but
they all don’t seem to work. I’m not using any .htaccess files for this
site. I look in the Lucee admin panel to see if there are any compression
options that might be causing this but I can’t seem to find anything. Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.

To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say was
the JavaScript is minified. I don’t know what tool the previous dev used to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything like
that. Let me know if you have any other questions.

Thank you,

MikeOn Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking about
the web server gziping the file or do you mean something more along the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when running on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function that
seems to work fine on Windows 2008 and Railo community 3.0.3.003 final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include file but
they all don’t seem to work. I’m not using any .htaccess files for this
site. I look in the Lucee admin panel to see if there are any compression
options that might be causing this but I can’t seem to find anything. Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.

To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi Jordan,

I’m running an Amazon micro AWS server with Ubuntu 14.04 64bit with Apache.
I installed tomcat and Lucee using the Ubuntu Lucee installer. I have only
1 website running on this server with no other special configuration other
than the UCanAccess jar files to work with the client’s MS Access database.
This website is currently running on another server which is a Windows 2008
with Railo 3.0.3 community and it runs fine with no issues. I’m just
looking to upgrade and move the site as the current server is getting old.
But on the Ubuntu server this particular cfm page fails because the
minified javascript doesn’t seem to be rendering properly as I’m getting
errors saying that it can’t find certain variables/objects etc. which are
in this JavaScript. When I view the source of the rendered page in the
browser and look at the inline minified JS code, it’s showing some strange
characters in FireFox and Chrome like black diamonds shapes, hearts etc.
which is why I’m thinking its not rendering properly. I hope I given you
enough info. Let me know if you have any other questions. Thanks again for
your help.

Cheers,

MikeOn Friday, June 3, 2016 at 6:41:09 PM UTC-4, Jordan Michaels wrote:

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the minified
JS file changes from the server to the client? That’s extremely unusual.
Are you using a standard Installer build with Apache as the web server?
Or… maybe describe your setup a bit more…


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when
running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say
was
the JavaScript is minified. I don’t know what tool the previous dev used
to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking about
the web server gziping the file or do you mean something more along the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when running
on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function
that
seems to work fine on Windows 2008 and Railo community 3.0.3.003 final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it
doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include file
but
they all don’t seem to work. I’m not using any .htaccess files for this
site. I look in the Lucee admin panel to see if there are any
compression
options that might be causing this but I can’t seem to find anything.
Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.

To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

No problem man. Fought my share of charset issues in the past and have more
waiting for me in near future (mostly dealing with email parsing and
template injection)

So it works fine in windows-1252 but not in utf-8 (I’m assuming the
defaults in fresh installs of Ubuntu/Apache/tomcat/lucee would be utf-8)?

I was expecting you to say the opposite … Tgat the old server was dishing
out utf8 and the new setup had been configured to be windows-1252 or some
other ANSI variant.

Even though you’re back operational … You should still make sure all of
your charset settings are in alignment. It’s common for them to be
inconsistent. I suspect you have mismatched settings somewhere.

Places to check off the top of my head:

  • the actual encoding of the files on disk
  • the charset settings in the app server (lucee in this case)
  • HTTP content-type headers injected by your webserver (Apache/iis/nginx)
    or servlet container (tomcat)
  • any content-type meta tags in the HTML that your app sends to the browser
    to interept

The HTTP content-type header in Apache is important so that js/css and
other text files that aren’t handled by lucee get served in the right
charset.On Sun, Jun 5, 2016 at 11:42 AM Michael Aushana <@Michael_Aushana> wrote:

Hi Aaron,

You were right. The character set was the issue. I checked my Railo
installation and it was using *windows-1252. *I changed the values for
Template and Resource charset to use windows-1252 in Lucee and now it’s
working. Thank you very much for all your help. Much appreciated.

Cheers,

Mike

On Saturday, June 4, 2016 at 11:12:19 PM UTC-4, Aaron Terry wrote:

Sounds like a character set issue. Maybe Railo/Tomcat and iis or Apache
on your old server was configured to serve in utf-8 and your new server is
not.

Reading utf-8 files in a character set other than utf-8 often results in
seeing the black diamonds and question marks that you mention.

Here’s what I’d do:

For a quick test … Put the tag below in the cf[cm] file that reads and
write the UK online JavaScript.

Check lucee web/server admin to see what default charset is in place.

Check the win 2008 server and verify the character encoding settings in
Railo and Apache/IIS.

If you see differences, then change your settings on the new server to
match the old server.

Check the character encoding of the file that contains the minified
JavaScript. Many text editors will report the character encoding of open
files.

Maybe it was utf-8 on the old server and somehow the encoding got changed
when the files were copied to the new server. If that’s the case you’ll
need to recopy the file taking care to maintain the same encoding.

Good luck!

On Sat, Jun 4, 2016 at 2:30 PM Michael Aushana mi...@madwebdesigns.ca wrote:

Hi Jordan,

I’m running an Amazon micro AWS server with Ubuntu 14.04 64bit with
Apache. I installed tomcat and Lucee using the Ubuntu Lucee installer. I
have only 1 website running on this server with no other special
configuration other than the UCanAccess jar files to work with the client’s
MS Access database. This website is currently running on another server
which is a Windows 2008 with Railo 3.0.3 community and it runs fine with no
issues. I’m just looking to upgrade and move the site as the current server
is getting old. But on the Ubuntu server this particular cfm page fails
because the minified javascript doesn’t seem to be rendering properly as
I’m getting errors saying that it can’t find certain variables/objects etc.
which are in this JavaScript. When I view the source of the rendered page
in the browser and look at the inline minified JS code, it’s showing some
strange characters in FireFox and Chrome like black diamonds shapes, hearts
etc. which is why I’m thinking its not rendering properly. I hope I given
you enough info. Let me know if you have any other questions. Thanks again
for your help.

Cheers,

Mike

On Friday, June 3, 2016 at 6:41:09 PM UTC-4, Jordan Michaels wrote:

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the
minified JS file changes from the server to the client? That’s extremely
unusual. Are you using a standard Installer build with Apache as the web
server? Or… maybe describe your setup a bit more…


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----

From: “Michael Aushana” mi...@madwebdesigns.ca

To: “Lucee” lu...@googlegroups.com
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when
running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say
was
the JavaScript is minified. I don’t know what tool the previous dev
used to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything
like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking
about
the web server gziping the file or do you mean something more along
the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when
running on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function
that
seems to work fine on Windows 2008 and Railo community 3.0.3.003
final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it
doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include
file but
they all don’t seem to work. I’m not using any .htaccess files for
this
site. I look in the Lucee admin panel to see if there are any
compression
options that might be causing this but I can’t seem to find anything.
Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups “Lucee” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/464f1fcd-c98f-4a5f-8ee6-73a59037f799%40googlegroups.com
https://groups.google.com/d/msgid/lucee/464f1fcd-c98f-4a5f-8ee6-73a59037f799%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Hi Aaron,

You were right. The character set was the issue. I checked my Railo
installation and it was using *windows-1252. *I changed the values for
Template and Resource charset to use windows-1252 in Lucee and now it’s
working. Thank you very much for all your help. Much appreciated.

Cheers,

MikeOn Saturday, June 4, 2016 at 11:12:19 PM UTC-4, Aaron Terry wrote:

Sounds like a character set issue. Maybe Railo/Tomcat and iis or Apache on
your old server was configured to serve in utf-8 and your new server is not.

Reading utf-8 files in a character set other than utf-8 often results in
seeing the black diamonds and question marks that you mention.

Here’s what I’d do:

For a quick test … Put the tag below in the cf[cm] file that reads and
write the UK online JavaScript.

Check lucee web/server admin to see what default charset is in place.

Check the win 2008 server and verify the character encoding settings in
Railo and Apache/IIS.

If you see differences, then change your settings on the new server to
match the old server.

Check the character encoding of the file that contains the minified
JavaScript. Many text editors will report the character encoding of open
files.

Maybe it was utf-8 on the old server and somehow the encoding got changed
when the files were copied to the new server. If that’s the case you’ll
need to recopy the file taking care to maintain the same encoding.

Good luck!

On Sat, Jun 4, 2016 at 2:30 PM Michael Aushana <mi…@madwebdesigns.ca <javascript:>> wrote:

Hi Jordan,

I’m running an Amazon micro AWS server with Ubuntu 14.04 64bit with
Apache. I installed tomcat and Lucee using the Ubuntu Lucee installer. I
have only 1 website running on this server with no other special
configuration other than the UCanAccess jar files to work with the client’s
MS Access database. This website is currently running on another server
which is a Windows 2008 with Railo 3.0.3 community and it runs fine with no
issues. I’m just looking to upgrade and move the site as the current server
is getting old. But on the Ubuntu server this particular cfm page fails
because the minified javascript doesn’t seem to be rendering properly as
I’m getting errors saying that it can’t find certain variables/objects etc.
which are in this JavaScript. When I view the source of the rendered page
in the browser and look at the inline minified JS code, it’s showing some
strange characters in FireFox and Chrome like black diamonds shapes, hearts
etc. which is why I’m thinking its not rendering properly. I hope I given
you enough info. Let me know if you have any other questions. Thanks again
for your help.

Cheers,

Mike

On Friday, June 3, 2016 at 6:41:09 PM UTC-4, Jordan Michaels wrote:

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the minified
JS file changes from the server to the client? That’s extremely unusual.
Are you using a standard Installer build with Apache as the web server?
Or… maybe describe your setup a bit more…


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----

From: “Michael Aushana” mi...@madwebdesigns.ca

To: “Lucee” lu...@googlegroups.com
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when
running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say
was
the JavaScript is minified. I don’t know what tool the previous dev used
to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking
about
the web server gziping the file or do you mean something more along
the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when
running on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function
that
seems to work fine on Windows 2008 and Railo community 3.0.3.003
final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it
doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include file
but
they all don’t seem to work. I’m not using any .htaccess files for
this
site. I look in the Lucee admin panel to see if there are any
compression
options that might be causing this but I can’t seem to find anything.
Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups “Lucee” group.

To unsubscribe from this group and stop receiving emails from it, send an

email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Thanks Aaron. I will try that and report back.

Cheers,

MikeOn Saturday, June 4, 2016 at 11:12:19 PM UTC-4, Aaron Terry wrote:

Sounds like a character set issue. Maybe Railo/Tomcat and iis or Apache on
your old server was configured to serve in utf-8 and your new server is not.

Reading utf-8 files in a character set other than utf-8 often results in
seeing the black diamonds and question marks that you mention.

Here’s what I’d do:

For a quick test … Put the tag below in the cf[cm] file that reads and
write the UK online JavaScript.

Check lucee web/server admin to see what default charset is in place.

Check the win 2008 server and verify the character encoding settings in
Railo and Apache/IIS.

If you see differences, then change your settings on the new server to
match the old server.

Check the character encoding of the file that contains the minified
JavaScript. Many text editors will report the character encoding of open
files.

Maybe it was utf-8 on the old server and somehow the encoding got changed
when the files were copied to the new server. If that’s the case you’ll
need to recopy the file taking care to maintain the same encoding.

Good luck!

On Sat, Jun 4, 2016 at 2:30 PM Michael Aushana <mi…@madwebdesigns.ca <javascript:>> wrote:

Hi Jordan,

I’m running an Amazon micro AWS server with Ubuntu 14.04 64bit with
Apache. I installed tomcat and Lucee using the Ubuntu Lucee installer. I
have only 1 website running on this server with no other special
configuration other than the UCanAccess jar files to work with the client’s
MS Access database. This website is currently running on another server
which is a Windows 2008 with Railo 3.0.3 community and it runs fine with no
issues. I’m just looking to upgrade and move the site as the current server
is getting old. But on the Ubuntu server this particular cfm page fails
because the minified javascript doesn’t seem to be rendering properly as
I’m getting errors saying that it can’t find certain variables/objects etc.
which are in this JavaScript. When I view the source of the rendered page
in the browser and look at the inline minified JS code, it’s showing some
strange characters in FireFox and Chrome like black diamonds shapes, hearts
etc. which is why I’m thinking its not rendering properly. I hope I given
you enough info. Let me know if you have any other questions. Thanks again
for your help.

Cheers,

Mike

On Friday, June 3, 2016 at 6:41:09 PM UTC-4, Jordan Michaels wrote:

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the minified
JS file changes from the server to the client? That’s extremely unusual.
Are you using a standard Installer build with Apache as the web server?
Or… maybe describe your setup a bit more…


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----

From: “Michael Aushana” mi...@madwebdesigns.ca

To: “Lucee” lu...@googlegroups.com
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when
running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say
was
the JavaScript is minified. I don’t know what tool the previous dev used
to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking
about
the web server gziping the file or do you mean something more along
the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when
running on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function
that
seems to work fine on Windows 2008 and Railo community 3.0.3.003
final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it
doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include file
but
they all don’t seem to work. I’m not using any .htaccess files for
this
site. I look in the Lucee admin panel to see if there are any
compression
options that might be causing this but I can’t seem to find anything.
Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups “Lucee” group.

To unsubscribe from this group and stop receiving emails from it, send an

email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Sounds like a character set issue. Maybe Railo/Tomcat and iis or Apache on
your old server was configured to serve in utf-8 and your new server is not.

Reading utf-8 files in a character set other than utf-8 often results in
seeing the black diamonds and question marks that you mention.

Here’s what I’d do:

For a quick test … Put the tag below in the cf[cm] file that reads and
write the UK online JavaScript.

Check lucee web/server admin to see what default charset is in place.

Check the win 2008 server and verify the character encoding settings in
Railo and Apache/IIS.

If you see differences, then change your settings on the new server to
match the old server.

Check the character encoding of the file that contains the minified
JavaScript. Many text editors will report the character encoding of open
files.

Maybe it was utf-8 on the old server and somehow the encoding got changed
when the files were copied to the new server. If that’s the case you’ll
need to recopy the file taking care to maintain the same encoding.

Good luck!On Sat, Jun 4, 2016 at 2:30 PM Michael Aushana <@Michael_Aushana> wrote:

Hi Jordan,

I’m running an Amazon micro AWS server with Ubuntu 14.04 64bit with
Apache. I installed tomcat and Lucee using the Ubuntu Lucee installer. I
have only 1 website running on this server with no other special
configuration other than the UCanAccess jar files to work with the client’s
MS Access database. This website is currently running on another server
which is a Windows 2008 with Railo 3.0.3 community and it runs fine with no
issues. I’m just looking to upgrade and move the site as the current server
is getting old. But on the Ubuntu server this particular cfm page fails
because the minified javascript doesn’t seem to be rendering properly as
I’m getting errors saying that it can’t find certain variables/objects etc.
which are in this JavaScript. When I view the source of the rendered page
in the browser and look at the inline minified JS code, it’s showing some
strange characters in FireFox and Chrome like black diamonds shapes, hearts
etc. which is why I’m thinking its not rendering properly. I hope I given
you enough info. Let me know if you have any other questions. Thanks again
for your help.

Cheers,

Mike

On Friday, June 3, 2016 at 6:41:09 PM UTC-4, Jordan Michaels wrote:

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the minified
JS file changes from the server to the client? That’s extremely unusual.
Are you using a standard Installer build with Apache as the web server?
Or… maybe describe your setup a bit more…


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----

From: “Michael Aushana” mi...@madwebdesigns.ca

To: “Lucee” lu...@googlegroups.com
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when
running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to say
was
the JavaScript is minified. I don’t know what tool the previous dev used
to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking about
the web server gziping the file or do you mean something more along the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when running
on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function
that
seems to work fine on Windows 2008 and Railo community 3.0.3.003 final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it
doesn’t
seem to work. Everything is working except this compressed JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include file
but
they all don’t seem to work. I’m not using any .htaccess files for this
site. I look in the Lucee admin panel to see if there are any
compression
options that might be causing this but I can’t seem to find anything.
Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.

To unsubscribe from this group and stop receiving emails from it, send an

email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Hi Aaron,

Thanks again for the reply. When I was looking at the Lucee admin panel
charset the defaults were I think ASCII or US-ASCII I can’t remember now,
for both of those options. I tried utf-8 but it didn’t work. When I changed
it to windows-1252 as per the old Railo server it started working fine. I
will have a look at the places you listed and see if I can figure out where
it might be causing this mix up. I would rather have it using utf-8 instead
but I will see if that’s possible. Thanks again for the great info, much
appreciated.

Cheers,

MikeOn Sunday, June 5, 2016 at 6:55:44 PM UTC-4, Aaron Terry wrote:

No problem man. Fought my share of charset issues in the past and have
more waiting for me in near future (mostly dealing with email parsing and
template injection)

So it works fine in windows-1252 but not in utf-8 (I’m assuming the
defaults in fresh installs of Ubuntu/Apache/tomcat/lucee would be utf-8)?

I was expecting you to say the opposite … Tgat the old server was
dishing out utf8 and the new setup had been configured to be windows-1252
or some other ANSI variant.

Even though you’re back operational … You should still make sure all of
your charset settings are in alignment. It’s common for them to be
inconsistent. I suspect you have mismatched settings somewhere.

Places to check off the top of my head:

  • the actual encoding of the files on disk
  • the charset settings in the app server (lucee in this case)
  • HTTP content-type headers injected by your webserver (Apache/iis/nginx)
    or servlet container (tomcat)
  • any content-type meta tags in the HTML that your app sends to the
    browser to interept

The HTTP content-type header in Apache is important so that js/css and
other text files that aren’t handled by lucee get served in the right
charset.

On Sun, Jun 5, 2016 at 11:42 AM Michael Aushana <mi…@madwebdesigns.ca <javascript:>> wrote:

Hi Aaron,

You were right. The character set was the issue. I checked my Railo
installation and it was using *windows-1252. *I changed the values for
Template and Resource charset to use windows-1252 in Lucee and now it’s
working. Thank you very much for all your help. Much appreciated.

Cheers,

Mike

On Saturday, June 4, 2016 at 11:12:19 PM UTC-4, Aaron Terry wrote:

Sounds like a character set issue. Maybe Railo/Tomcat and iis or Apache
on your old server was configured to serve in utf-8 and your new server is
not.

Reading utf-8 files in a character set other than utf-8 often results in
seeing the black diamonds and question marks that you mention.

Here’s what I’d do:

For a quick test … Put the tag below in the cf[cm] file that reads
and write the UK online JavaScript.

Check lucee web/server admin to see what default charset is in place.

Check the win 2008 server and verify the character encoding settings in
Railo and Apache/IIS.

If you see differences, then change your settings on the new server to
match the old server.

Check the character encoding of the file that contains the minified
JavaScript. Many text editors will report the character encoding of open
files.

Maybe it was utf-8 on the old server and somehow the encoding got
changed when the files were copied to the new server. If that’s the case
you’ll need to recopy the file taking care to maintain the same encoding.

Good luck!

On Sat, Jun 4, 2016 at 2:30 PM Michael Aushana mi...@madwebdesigns.ca wrote:

Hi Jordan,

I’m running an Amazon micro AWS server with Ubuntu 14.04 64bit with
Apache. I installed tomcat and Lucee using the Ubuntu Lucee installer. I
have only 1 website running on this server with no other special
configuration other than the UCanAccess jar files to work with the client’s
MS Access database. This website is currently running on another server
which is a Windows 2008 with Railo 3.0.3 community and it runs fine with no
issues. I’m just looking to upgrade and move the site as the current server
is getting old. But on the Ubuntu server this particular cfm page fails
because the minified javascript doesn’t seem to be rendering properly as
I’m getting errors saying that it can’t find certain variables/objects etc.
which are in this JavaScript. When I view the source of the rendered page
in the browser and look at the inline minified JS code, it’s showing some
strange characters in FireFox and Chrome like black diamonds shapes, hearts
etc. which is why I’m thinking its not rendering properly. I hope I given
you enough info. Let me know if you have any other questions. Thanks again
for your help.

Cheers,

Mike

On Friday, June 3, 2016 at 6:41:09 PM UTC-4, Jordan Michaels wrote:

Hi Mike,

Ah yes “Minified”. That is the proper term. I got it wrong too! lol

So, once again to clarify what you’re saying, you’re saying the
minified JS file changes from the server to the client? That’s extremely
unusual. Are you using a standard Installer build with Apache as the web
server? Or… maybe describe your setup a bit more…


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----

From: “Michael Aushana” mi...@madwebdesigns.ca

To: “Lucee” lu...@googlegroups.com
Sent: Friday, June 3, 2016 2:04:38 PM
Subject: Re: [Lucee] Compressed JavaScript file is not working when
running on Lucee 4.5 and Ubuntu 14.04 LTS Server

Hi Jordan,

Thank you for the reply. Sorry about the confusion. What I meant to
say was
the JavaScript is minified. I don’t know what tool the previous dev
used to
minify the file with but I think it was one of the many online tools
currently available. I’m not using any server side gzip or anything
like
that. Let me know if you have any other questions.

Thank you,

Mike

On Friday, June 3, 2016 at 4:11:12 PM UTC-4, Jordan Michaels wrote:

Point of clarification: when you say “compressed” are you talking
about
the web server gziping the file or do you mean something more along
the
lines of “condensed”, where things like CRLF’s are stripped out?


Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Michael Aushana” <mi…@madwebdesigns.ca <javascript:>>
To: “Lucee” <lu...@googlegroups.com <javascript:>>
Sent: Friday, June 3, 2016 11:31:15 AM
Subject: [Lucee] Compressed JavaScript file is not working when
running on
Lucee 4.5 and Ubuntu 14.04 LTS Server

I have a CFML website that is using a compressed JavaScript function
that
seems to work fine on Windows 2008 and Railo community 3.0.3.003
final.
But
I try to use it on Ubuntu 14.04 LTS with Lucee 4.5.2.018 final it
doesn’t
seem to work. Everything is working except this compressed
JavaScript
function. For some reason the compressed characters change and the
function
fails to work. I tried putting the code inline or in a js include
file but
they all don’t seem to work. I’m not using any .htaccess files for
this
site. I look in the Lucee admin panel to see if there are any
compression
options that might be causing this but I can’t seem to find
anything. Has
anyone seen this before? Any help is appreciated.

Thank you,

Mike


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/b9108d6f-52b6-4df5-8d66-b5f47e393e36%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups “Lucee” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/753bcc50-0418-449d-a6d9-f2fa164dd578%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2bc0fdaa-5446-4573-88c3-bb6877699925%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/464f1fcd-c98f-4a5f-8ee6-73a59037f799%40googlegroups.com
https://groups.google.com/d/msgid/lucee/464f1fcd-c98f-4a5f-8ee6-73a59037f799%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.