[transfer-dev] Re: Transfer and Apache RewriteMap

2009-05-28 Thread dickbob

Just for completeness I've been playing with Apache and have made this
to work for me...

RewriteCond %{REQUEST_URI} !/path/to/transfer/definition/ [NC]
RewriteRule ^(.*)/$ ${lookupMap:$1} [NC]

This ignores the RewriteRule for the path to the Transfer definition
files.

The issue wasn't with RewriteMap per se but with RewriteRule that
happened to use the RewriteMap lookup.

I'm no Apache/RegEx/rewrite expert but this works for me!

Sorry for doubting Transfer. I should know better. Mark is far
cleverer than me! :-)

dickbob

On May 27, 6:06 pm, dickbob dick...@gmail.com wrote:
 Yep, of course you're right :-)

 I can repro this outside of Transfer.

 #expandPath('/path/to/transfer/definition/')#

 ...fails but...

 #expandPath('/path/to/transfer/definition')#

 ...without the trailing / is okay.

 It seems like I need to take this issue elsewhere.

 Thanks for the insight.

 dickbob

 On May 27, 11:54 am, Mark Mandel mark.man...@gmail.com wrote:

  It sounds like the rewrite is affecting expandPath() somehow... but I'm not
  sure.

  Mark

  On Wed, May 27, 2009 at 8:16 PM, dickbob dick...@gmail.com wrote:

   Cripes Mark, that's worrying if you have no idea!

   I can't understand what Transfer might be asking of Apaches that's
   causing it to pass the request through the RewriteMap function. Up
   till now I've been using individual RewriteRule's without a prob. Even
   if I make the map file blank Transfer still gags.

   Any Apache gurus out there that can shed some light on what might be
   happening?

   dickbob

   On May 26, 12:04 pm, Mark Mandel mark.man...@gmail.com wrote:
...I can honestly say, I have no idea ;o)

eeep!

Mark

On Tue, May 26, 2009 at 7:47 PM, dickbob dick...@gmail.com wrote:

 I had Transfer running sweetly and then I discovered Apache RewriteMap
 and it all went wrong!

 Now I get...

 An error occurred when performing a file operation write on file /
 Volumes/ApplicationDisk/JRun4/redirect://user.objUser
 $6980AE45AF993E435D4CB0E8E4580559.transfer.
 The cause of this exception was: java.io.FileNotFoundException: /
 Volumes/ApplicationDisk/JRun4/redirect:/user.objUser
 $6980AE45AF993E435D4CB0E8E4580559.transfer (No such file or
 directory).

 with the error being caused by FileWriter.cfc: line 47

 ...whenever I try and create a Transfer object.

 Before I turned RewriteMap on FileWriter.cfc was happy creating the
 file...

 /Volumes/Website/localhost/transfer/definition//user.objUser
 $6980AE45AF993E435D4CB0E8E4580559.transfer

 ...after turning RewriteMap on Transfer was trying to write...

 /Volumes/ApplicationDisk/JRun4/redirect://user.objUser
 $6980AE45AF993E435D4CB0E8E4580559.transfer

 ...and failed as described above.

 The rewrite rule is a simple...

 RewriteRule ^(.*)/$ ${lookupMap:$1} [NC]

 ...where lookupMap is defined in my httpd.conf file.

 Has anyone seen this before?

 Any thoughts?

 Can I provide any more info to help find a solution?

 dickbob

--
E: mark.man...@gmail.com
W:www.compoundtheory.com

  --
  E: mark.man...@gmail.com
  W:www.compoundtheory.com
--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Re: Transfer and Apache RewriteMap

2009-05-27 Thread dickbob

Cripes Mark, that's worrying if you have no idea!

I can't understand what Transfer might be asking of Apaches that's
causing it to pass the request through the RewriteMap function. Up
till now I've been using individual RewriteRule's without a prob. Even
if I make the map file blank Transfer still gags.

Any Apache gurus out there that can shed some light on what might be
happening?

dickbob

On May 26, 12:04 pm, Mark Mandel mark.man...@gmail.com wrote:
 ...I can honestly say, I have no idea ;o)

 eeep!

 Mark



 On Tue, May 26, 2009 at 7:47 PM, dickbob dick...@gmail.com wrote:

  I had Transfer running sweetly and then I discovered Apache RewriteMap
  and it all went wrong!

  Now I get...

  An error occurred when performing a file operation write on file /
  Volumes/ApplicationDisk/JRun4/redirect://user.objUser
  $6980AE45AF993E435D4CB0E8E4580559.transfer.
  The cause of this exception was: java.io.FileNotFoundException: /
  Volumes/ApplicationDisk/JRun4/redirect:/user.objUser
  $6980AE45AF993E435D4CB0E8E4580559.transfer (No such file or
  directory).

  with the error being caused by FileWriter.cfc: line 47

  ...whenever I try and create a Transfer object.

  Before I turned RewriteMap on FileWriter.cfc was happy creating the
  file...

  /Volumes/Website/localhost/transfer/definition//user.objUser
  $6980AE45AF993E435D4CB0E8E4580559.transfer

  ...after turning RewriteMap on Transfer was trying to write...

  /Volumes/ApplicationDisk/JRun4/redirect://user.objUser
  $6980AE45AF993E435D4CB0E8E4580559.transfer

  ...and failed as described above.

  The rewrite rule is a simple...

  RewriteRule ^(.*)/$ ${lookupMap:$1} [NC]

  ...where lookupMap is defined in my httpd.conf file.

  Has anyone seen this before?

  Any thoughts?

  Can I provide any more info to help find a solution?

  dickbob

 --
 E: mark.man...@gmail.com
 W:www.compoundtheory.com

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Re: Transfer and Apache RewriteMap

2009-05-27 Thread Mark Mandel
It sounds like the rewrite is affecting expandPath() somehow... but I'm not
sure.

Mark

On Wed, May 27, 2009 at 8:16 PM, dickbob dick...@gmail.com wrote:


 Cripes Mark, that's worrying if you have no idea!

 I can't understand what Transfer might be asking of Apaches that's
 causing it to pass the request through the RewriteMap function. Up
 till now I've been using individual RewriteRule's without a prob. Even
 if I make the map file blank Transfer still gags.

 Any Apache gurus out there that can shed some light on what might be
 happening?

 dickbob

 On May 26, 12:04 pm, Mark Mandel mark.man...@gmail.com wrote:
  ...I can honestly say, I have no idea ;o)
 
  eeep!
 
  Mark
 
 
 
  On Tue, May 26, 2009 at 7:47 PM, dickbob dick...@gmail.com wrote:
 
   I had Transfer running sweetly and then I discovered Apache RewriteMap
   and it all went wrong!
 
   Now I get...
 
   An error occurred when performing a file operation write on file /
   Volumes/ApplicationDisk/JRun4/redirect://user.objUser
   $6980AE45AF993E435D4CB0E8E4580559.transfer.
   The cause of this exception was: java.io.FileNotFoundException: /
   Volumes/ApplicationDisk/JRun4/redirect:/user.objUser
   $6980AE45AF993E435D4CB0E8E4580559.transfer (No such file or
   directory).
 
   with the error being caused by FileWriter.cfc: line 47
 
   ...whenever I try and create a Transfer object.
 
   Before I turned RewriteMap on FileWriter.cfc was happy creating the
   file...
 
   /Volumes/Website/localhost/transfer/definition//user.objUser
   $6980AE45AF993E435D4CB0E8E4580559.transfer
 
   ...after turning RewriteMap on Transfer was trying to write...
 
   /Volumes/ApplicationDisk/JRun4/redirect://user.objUser
   $6980AE45AF993E435D4CB0E8E4580559.transfer
 
   ...and failed as described above.
 
   The rewrite rule is a simple...
 
   RewriteRule ^(.*)/$ ${lookupMap:$1} [NC]
 
   ...where lookupMap is defined in my httpd.conf file.
 
   Has anyone seen this before?
 
   Any thoughts?
 
   Can I provide any more info to help find a solution?
 
   dickbob
 
  --
  E: mark.man...@gmail.com
  W:www.compoundtheory.com

 



-- 
E: mark.man...@gmail.com
W: www.compoundtheory.com

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---