Issue 122450 - insertDocumentFromUrl not working with ftp url
Summary: insertDocumentFromUrl not working with ftp url
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Blocker (vote)
Target Milestone: 4.0.0
Assignee: Ariel Constenla-Haile
QA Contact: emiliano.lucetti
URL:
Keywords:
Depends on: 122357
Blocks:
  Show dependency tree
 
Reported: 2013-06-04 10:53 UTC by ced
Modified: 2022-10-28 12:54 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ced 2013-06-04 10:53:27 UTC
in Openooffice 3.4.1 the following Macro that works on earlier versions (till 3.2.1) will trhow this error 

"com.sun.star.lang.WrappedTargetException
Message : Can't read contents!


Target Exception :
Type:com.sun.star.packages.ZipIoException
Message:
C:/AOO/sources/aoo340SVN/main/package/source/zippackage/ZipPackage.cxx:<unknown>:800;Bad Zip File.."



Sub   inserisciCodificati
   
   REM Dim InputVal As String
   Dim Fcodif   As String
   Dim Doc    As Object
   Dim Cursor   As Object
   Dim Valori(1) as  new com.sun.star.beans.PropertyValue
   Dim oDocument As Object
   Dim oText As Object
   Dim oViewCursor As Object
   Dim oTextCursor As Object   
   
   Fcodif   = "ftp://user@10.0.0.56/codificati/"+Fcodi+".sxw"   
   
   oDocument = ThisComponent
   oText = oDocument.Text
   oViewCursor = oDocument.CurrentController.getViewCursor()
   oTextCursor = oText.createTextCursorByRange(oViewCursor.getStart())   
   oTextCursor.insertDocumentFromURL(Fcodif,Valori())
   
End Sub


In Variable Fcodif is stored the path of the file it has to be imported. If i change the Path to something loccal as "file:///C:/Users/user/Desktop/test.sxw" everything works fine.

Thanks in Advance
Comment 1 Ariel Constenla-Haile 2013-06-04 11:06:30 UTC
This should be fixed with revision 1488548

Try with a Developer Snapshot build: 
https://cwiki.apache.org/confluence/display/OOOUSERS/Development+Snapshot+Builds#DevelopmentSnapshotBuilds-AOOSnapshotfullsets
Comment 2 ced 2013-06-04 14:56:17 UTC
(In reply to Ariel Constenla-Haile from comment #1)
> This should be fixed with revision 1488548
> 
> Try with a Developer Snapshot build: 
> https://cwiki.apache.org/confluence/display/OOOUSERS/
> Development+Snapshot+Builds#DevelopmentSnapshotBuilds-AOOSnapshotfullsets

Thanks so much it Works !! 
I installed it on some client to test properly . I'll report bugs here if found.

last Quetion. When will be relased the new version?


Thanks Again
Comment 3 Ariel Constenla-Haile 2013-06-04 16:53:16 UTC
(In reply to ced from comment #2)
> last Quetion. When will be relased the new version?

by the end of June.
You can subscribe to the announcements mailing list (it is a low traffic mailing list): http://openoffice.apache.org/mailing-lists.html#announce-mailing-list