Can you try replace

dest_file = open(pathfilename, 'wb')

with

try: dest_file = open(pathfilename, 'wb')
except: logging.error(str(traceback.format_exc()))

On 2 Lug, 03:22, Swell <[email protected]> wrote:
> Hi I may hae found something
>
> if i look at line 2688 in gluon/sql.py i can see in the function
> store:
> newfilename = newfilename[:200] + '.' + extension
>
> but so far so good it doesn t break anything to truncate the filename.
>
> later in the function ( line 2699) i see
> pathfilename = os.path.join(path, newfilename)
> dest_file = open(pathfilename, 'wb')
> and then an exception is thrown here
>
> so it seems it is an open issue
>
> i think that if we can t fix this bug , maybe adding some exception
> handling code here would be intersting. don t know yet if it is coming
> from python(2.6.4),windows 7 64, ....
> but at least we know the web2py call that breaks it.

Reply via email to