Web Software Architecture and Engineering – Life on the Bleeding Edge

Archive for August, 2009

ColdFusion Bug # 79585 – Mail Server Hard Coding in CFMAIL – Vote!

Here is what I entered for the details of the bug.
“When there is an error sending mail through a server, through large batch for example, the mail ends up in the Undelivr folder. This is expected behavior. However, the individual CFMail files in that folder, have the SMTP server explicitly hard coded. If that mail server changes for example, what is required is to go through all of these files manually and change that value. What is more curious, is that if that line is deleted all together, CF uses the default mail server in CFAdmin. So why hard code at all, unless the cfmail tag explicitly specified a mail server to use. If it didn’t, that line shouldn’t be there in case of a SMTP error. See: http://www.bytestopshere.com/post.cfm/help-funky-cf-mail-issue-mailserver and related forum entry for details. Major issue. No need for hard coding unless CFMail is explicit!”
Vote here:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=79585

Microsoft sucks at Photoshop

Take a look at this Engadget post. See anything weird.
http://www.engadget.com/2009/08/25/microsoft-sucks-at-photoshop/
Need a hint: Look at the guy in the middle. The head is messed up and so is the hand!

Reading Text Files Through Line Number – A Solution

As you guys may know, on one of my production boxes, I’ve been having CFMail issues. Details here.
Here is an image of the problem:
 CFMAIL Before
As well, I looked parsing the necessary cfmail files to get rid of defective line. But looking at ColdFusion and Java (and even .NET), nothing stood out.
So that was it! I needed a solid CFC to work with text files on a line by line basis. Enter FileByLine.CFC.
Here is some code!
<![CDATA[

<!---
Author: Sami Hoda
Email: sami bytestopshere.com
Blog: http://www.bytestopshere.com
Version: v0.1
Note: Comments appreciated!

Warning:
This code is provided as is.
I make no warranty or guarantee.
Use of this code is at your own risk.
READING OF LARGE FILES INTO ARRAYS FOR MANIPULATION CAN BE RISKY. RE-READ WARNING!

To Do:
- Optimization! I want it faster!
- Implement some sort of find capability... use Regex?

License:
Copyright 2009 Sami Hoda

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--->

]]>

And now the image shows:
CFMail After
Voila! Have fun. Comments welcome!
I’ll add this code to RiaForge shortly!
UPDATE: Code now on RiaForge, see http://filebyline.riaforge.org/.

Hiring Woes!

As I’ve been trying to hire for several different ColdFusion positions over the past few months, I’ve come across a lot of interesting folks and I’ve made a ton of interesting observations. While I won’t name names, I would say that there are definitely some people I would never work with. Like Sean Corfield, who maintains a list of people whom he would never hire, I’ve started my own list.
More stories and observations to come!

Help! Reading Text Files Through Line Number

As I deal with the mail server issue (see previous post), I was thinking how to automate some of the find and replace I am doing.
I know that CF8 has many new functions and memory enhancements when dealing with files, but I was wondering if anyone has a UDF or CFC dealing with the following use case.
1. Open target text file
2. Replace text on line number X
3. Save target text file
Sound simple, right? But I have not found any code in ColdFusion, where you can explicitly target a line number inside a text file for some action. Has anyone seen this, or something similar in JAVA which could be turned into a UDF or CFC?
 

Help! Funky CF Mail Issue – ${mailServer}

Has anyone encountered this issue before?
All emails seem to go into the UnDelivr folder, and each email has “server:  ${mailServer}:25″ in the header instead of the valid mail server.
Beside the fact that this is an annoying function of CF Mail (hard coded values, when it should just use the default in CFAdmin), I’m wondering why every other value is correct except this one.
Now I have to do a find and replace for hundreds of emails, fun!
Any ideas?
UPDATE: Mail.log shows: “Unknown SMTP host: ${mailServer}”
UPDATE: I simply deleted the whole “server” line and the files went through using the default mail server. I wonder why we need that line in the file now!

Reminder – We're hiring like crazy! Jobs, jobs, jobs!

You heard me right, we’re hiring like crazy. Just a reminder.
We have openings for:

  • Web Developers
  • Sr. Web Developers
  • Architects / Principal Engineers
  • Dev. Managers

Our team became smaller over time due to the economy, and as people moved on to try different things, and we’re ready to hire.
We’ll even consider working with people with visa and/or relocation concerns!
We’re a well-oiled machine, formal product development lifecycle, mature development process with the Mach II framework, and we’re looking at tweaking our existing SaaS application and building new applications using new frameworks. Time to learn new things and take them to the next level.
Plus you’ll get to work with me, a long time CF guy, and Adobe Community Expert. :)
For more details, view my earlier post:
http://www.bytestopshere.com/post.cfm/job-opening-work-with-me-now-with-job-description
Please note: The location is on site here in Sunny SoCal and pay is DOE.

Security Alert – Subversion 1.6.4 Released

Subversion 1.6.4 has been released to fix a vulnerability.
Version 1.6.4
(06 Aug 2009, from /branches/1.6.x)
http://svn.collab.net/repos/svn/tags/1.6.4

User-visible changes:
* fixed: heap overflow vulnerability on server and client
See CVE-2009-2411, and descriptive advisory at
http://subversion.tigris.org/security/CVE-2009-2411-advisory.txt

More details below.

Subversion 1.6.4 has been released, available from:

    http://subversion.tigris.org/downloads/subversion-1.6.4.tar.bz2

    http://subversion.tigris.org/downloads/subversion-1.6.4.tar.gz

    http://subversion.tigris.org/downloads/subversion-1.6.4.zip

    http://subversion.tigris.org/downloads/subversion-deps-1.6.4.tar.bz2

    http://subversion.tigris.org/downloads/subversion-deps-1.6.4.tar.gz

    http://subversion.tigris.org/downloads/subversion-deps-1.6.4.zip

 

THIS IS A SECURITY RELEASE, addressing the issue
described at:

    http://cve.mitre.org/cgi-bin/cvename.cgi?name=2009-2411

The CVE page may not be public yet when you read this,
but will be soon.

The full text of the advisory is available at:

    http://subversion.tigris.org/security/CVE-2009-2411-advisory.txt

This security issue affects both clients and
servers.  Clients with commit access to a
vulnerable server can cause a remote heap overflow.  Servers can cause a heap overflow on vulnerable
clients that try to do a checkout or update. 
Subversion 1.6.4 differs from 1.6.4 only in the fix for this issue.  Upgrading to Subversion 1.6.4 (or Subversion
1.5.7, released

simultaneously) is therefore strongly recommended for
Subversion client and server installations on all platforms.

Release notes for the 1.6.x release series may be found
at:

    http://subversion.tigris.org/svn_1.6_releasenotes.html

You can find the list of changes between 1.6.4 and
earlier versions at:

    http://svn.collab.net/repos/svn/tags/1.6.4/CHANGES
 

Follow

Get every new post delivered to your Inbox.

Join 414 other followers