[Seaside] Maybe a FileReference bug?

Jupiter Jones jupiter.jones at mail.com
Tue Sep 24 23:09:38 UTC 2013


Hi All,

I've got Pier3, seaside 3.0.8(9?) running in Pharo 2 and have an issue with FileUpload.

The issue appear to be in FileReference resolveString:

resolveString: aString 
	| thePath |
	thePath := filesystem pathFromString: aString.
	^ filesystem referenceTo: (path resolve: thePath)

aString is 'image.png', aFileReference path is the full path to the file:

eg. 
/home/jupiter/image.png

however (path resolve: thePath) returns:

/home/jupiter/image.png/image.png

I think I may have an issue with the packages loaded since I also needed to chance a bunch of deprecated #pathName to #fullName. I kinda expected this in the Pier classes since I don't think it's ready for 2 (just guessing).

I also noticed that I have the FileSystem-Legacy package loaded and saw a comment about it being needed for seaside 3.0.x in Pharo2… which is what I'm running. Haven't looked deep enough to work it out yet, but wanted to ask if I'm running in circles with the wrong versions of things before I continue.

Any advice?

Thanks in advance.

Cheers,

Jupiter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130925/609f02de/attachment.htm


More information about the seaside mailing list