Upload PDF is broken due to bad commit rev. 811787

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Upload PDF is broken due to bad commit rev. 811787

Jacopo Cappellato-4
Hi Hans,

could you please fix the code that has been committed in rev 811787?
It is causing issues because there are settings like this in  
ModelScreenWidget:

String fileName = "/home/hans/ofbiz/svn/applications/commonext/
documents/ApacheOfbiz.xml";
SAXSource source = new SAXSource(reader, new InputSource(fileName));

Upload of PDF file is broken.

Thanks,

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: Upload PDF is broken due to bad commit rev. 811787

Jacopo Cappellato-4
Wow, Hans it seems that this is broken since the 29th of August... do  
you think you can quickly fix it?

Jacopo

On Sep 9, 2009, at 9:51 AM, Jacopo Cappellato wrote:

> Hi Hans,
>
> could you please fix the code that has been committed in rev 811787?
> It is causing issues because there are settings like this in  
> ModelScreenWidget:
>
> String fileName = "/home/hans/ofbiz/svn/applications/commonext/
> documents/ApacheOfbiz.xml";
> SAXSource source = new SAXSource(reader, new InputSource(fileName));
>
> Upload of PDF file is broken.
>
> Thanks,
>
> Jacopo
>

Reply | Threaded
Open this post in threaded view
|

Re: Upload PDF is broken due to bad commit rev. 811787

hans_bakker
In reply to this post by Jacopo Cappellato-4
sorry about that, the code is now commented out.

Regards,
Hans

On Wed, 2009-09-09 at 09:51 +0200, Jacopo Cappellato wrote:

> Hi Hans,
>
> could you please fix the code that has been committed in rev 811787?
> It is causing issues because there are settings like this in  
> ModelScreenWidget:
>
> String fileName = "/home/hans/ofbiz/svn/applications/commonext/
> documents/ApacheOfbiz.xml";
> SAXSource source = new SAXSource(reader, new InputSource(fileName));
>
> Upload of PDF file is broken.
>
> Thanks,
>
> Jacopo
>
--
Antwebsystems.com: Quality OFBiz services for competitive rates

Reply | Threaded
Open this post in threaded view
|

Re: Upload PDF is broken due to bad commit rev. 811787

Jacopo Cappellato-4
Np,

Hans, would you mind going here:

https://localhost:8443/content/control/findDataResource

creating a new data resource of type "binary file"

and then trying to upload (using the "Upload" tab) an existing PDF  
file from your filesystem?

It used to work but now it is throwing an exception, even after  
updating with your last fix.

Thanks,

Jacopo

On Sep 9, 2009, at 10:10 AM, Hans Bakker wrote:

> sorry about that, the code is now commented out.
>
> Regards,
> Hans
>
> On Wed, 2009-09-09 at 09:51 +0200, Jacopo Cappellato wrote:
>> Hi Hans,
>>
>> could you please fix the code that has been committed in rev 811787?
>> It is causing issues because there are settings like this in
>> ModelScreenWidget:
>>
>> String fileName = "/home/hans/ofbiz/svn/applications/commonext/
>> documents/ApacheOfbiz.xml";
>> SAXSource source = new SAXSource(reader, new InputSource(fileName));
>>
>> Upload of PDF file is broken.
>>
>> Thanks,
>>
>> Jacopo
>>
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>

Reply | Threaded
Open this post in threaded view
|

Re: Upload PDF is broken due to bad commit rev. 811787

hans_bakker
Jacopo,

i had a look: here are 3 types of binary file:
1. local binary
2. local to appl binary
3. local to ofbiz home binary

i tried all of the three and reverted back to the revision before 811787
and the problem is still there for not only pdf file....do i miss
something?

if you use 'image file' then the upload works

it looks like when it is an external file the problem appears, saving in
the database is ok.

on the upload screen the bottom part should only be shown if the object
fields is not empty and the file can be found...

So let me know if I can help.

Regards,
Hans

--
Antwebsystems.com: Quality OFBiz services for competitive rates

Reply | Threaded
Open this post in threaded view
|

Re: Upload PDF is broken due to bad commit rev. 811787

Jacopo Cappellato-4
Ok, I will look at it; thanks for your research.

Jacopo

On Sep 9, 2009, at 11:57 AM, Hans Bakker wrote:

> Jacopo,
>
> i had a look: here are 3 types of binary file:
> 1. local binary
> 2. local to appl binary
> 3. local to ofbiz home binary
>
> i tried all of the three and reverted back to the revision before  
> 811787
> and the problem is still there for not only pdf file....do i miss
> something?
>
> if you use 'image file' then the upload works
>
> it looks like when it is an external file the problem appears,  
> saving in
> the database is ok.
>
> on the upload screen the bottom part should only be shown if the  
> object
> fields is not empty and the file can be found...
>
> So let me know if I can help.
>
> Regards,
> Hans
>
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>