|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2013/3/29 12:19
#21 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/12/6 12:39 From Finland
Posts: 146
|
Ok, Icon didnt appear to WB, because of tooltype ACTIVATE=0 , now it is ACTIVATE=1 and works.
Retested with ACTIVATE=1 Logon tooltype as it was: STARTUP=URL http:/username:psswd@webdav.mydrive.ch NAME CLOUD That causes CLOUD:test/test> prompt in shell, where it could be CLOUD:test> Changed STARTUP=URL http:/username:psswd@webdav.mydrive.ch/ NAME CLOUD Wich didnt made any difference, still CLOUD:test/test> Some difference here is. With webdav.mydrive.ch/ -mount I got dir. All old drawers shows up. Then I made new drawer kokkeli. Only kokkeli shows up next dir command. Then dismount, tooltype to webdav.mydrive.ch and remount. All drawers show up, including kokkeli. I deleted all contents in CLOUD: , dismount, remount with webdav.mydrive.ch. Same again, CLOUD:test/test> prompt in shell, same ghost drawer under test. I deleted all contents in CLOUD: , dismount, remount with webdav.mydrive.ch/. I deleted all contents in CLOUD: , dismount, remount with webdav.mydrive.ch/. Same again, CLOUD:test/test> prompt in shell, same ghost drawer under test. So, cant get any difference between webdav.mydrive.ch/ or webdav.mydrive.ch CLOUD:test/test> prompt stays, same ghost drawer allso. Same behaviour, if I enter directly CLOUD:test and execute del #?, it epties whole cloud. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2013/3/29 18:03
#22 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/12/6 12:39 From Finland
Posts: 146
|
@Chris
If you want to mess with my webdav account, I can give credentials. It is empty atm. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2013/3/29 18:28
#23 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
No, I have a MyDrive account already - that's what I've been testing with primarily.
I've sort-of fixed the recurring directories problem (and the contents of directories are visible now in the Shell - which they weren't before, not sure how that went unnoticed), however I've introduced a new one where directories sometimes show up as tools in WB, oh, and: Quote: 13.MyDrive:> dev Clearly wrong! The main problem is that the old ACTION_EXAMINE stuff is horrendous, as there's no way of knowing if a single file or a directory is being exmained until ACTION_EXAMINE_NEXT is called (unless you can find out in advance - might be an option, but that's extra network traffic) I'm tempted to ditch ACTION_EXAMINE as I think OS4.1 only uses it now if ACTION_EXAMINEDATA isn't supported... but I'm not sure on that. I need to implement ACTION_EXAMINEDATA first to check! |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2013/3/30 19:25
#24 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/12/6 12:39 From Finland
Posts: 146
|
Ok, good :)
I think that webdav is fine alternative to ftp. More secure than ftp. More modern allso. Dunno even know, if ftps or sftp is possible to mount in Amiga, but they are impossible to get work throught firewall (securely). |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2013/4/8 20:02
#25 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
sftp and ftps can't be mounted, plain ftp can be. sftp is basically ssh/scp. I can't remember what ftps is (might be SSL encrypted ftp, nearly nobody uses it anyway)
Anyway, I found out the main problem with beta3 - updates to libssl had stopped my previous neon build from working with SSL. I've rebuilt neon and it is now working again. I'll upload a new beta when I've implemented the new examine packets (although when that'll be is anybody's guess). Until then, please use beta2 (for https sites) and ignore beta3. Note that MyDrive works fine in non-encrypted (http) mode and therefore works with beta3 (barring previously-reported issues). Most other sites require encryption. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/9 21:44
#26 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/12/6 12:39 From Finland
Posts: 146
|
Did you made any progress with webdav handler?
|
|
_________________
Peg2 1GHz G4, 1Gb mem, Radeon 9250 |
||
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/9 22:03
#27 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
@Mlehto
I started to replace ACTION_EXAMINE with ACTION_EXAMINEOBJECT, but since I only did the single file part and left it in an incoherent state, it tends to just crash now. I need to finish the implementation (ACTION_EXAMINEDIR??) but haven't got round to it. The old version sort-of works most of the time for me so it's not a priority. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/9 22:09
#28 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/12/6 12:39 From Finland
Posts: 146
|
@Chris
Ok :) |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/10 15:57
#29 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1281
|
@Chris
You should implement the new, much cleaner vector port FS API and pass the legacy packets through the packet emulator. See dos.dospackets.doc in SDK:Documentation/AutoDocs/ and also: http://wiki.amigaos.net/index.php/AmigaDOS_Vector-Port |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/10 18:15
#30 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/26 23:16 Posts: 980
|
@salass00
Quote: You should implement the new, much cleaner vector port FS API and pass the legacy packets through the packet emulator... I agree. Using that old DOS packet stuff is just asking for headaches. I think there is still stuff missing from the SDK so I may need a boot to get an update out for you guys. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/10 19:33
#31 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
I'd rather get it working using the new packets first, before worrying about the vector port API. Otherwise I'm introducing bugs by completely changing the structure of the code from something I'm (mostly) familiar with.
|
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/10 19:54
#32 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1281
|
@Chris
IMO that is just making more work for yourself. When porting filesysbox.library to AmigaOS 4.x I changed it over to vector port method directly instead of messing around adding support for the new AmigaOS 4.x packets only to have to redo that code again later. Using vector port API you don't need to worry about BCPL strings, BCPL pointers and other such legacy crap unlike with packets. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/1/10 21:10
#33 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
@salass00
It's already written and working under the old system, it's literally two packets I need to (re-)implement. If I was starting afresh I'd use vector ports, but this is old code. I don't have time to do that, so I definitely don't have time to rewrite it all! |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/2/17 20:06
#34 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
Hmm, I added ExamineDataDir or EXAMINEDATA_DIR or whatever it is. It's still crashing. It's probably something trivial but I'm not sure I have the motivation to investigate and fix it (I'm using the old mostly-working version).
If anybody wants access to the source to work on it, PM me (it's on openamiga.org, it's also a complete mess - you have been warned!) |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/2/17 20:22
#35 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1281
|
@Chris
If it helps there is an implementation in filesysbox.library (see FbxExamineDir() in filesysbox.c): https://dl.dropboxusercontent.com/u/26 ... 3/filesysbox-53.21-src.7z One thing you need to remember is to pass the context pointer to AllocDosObjectTags() using ADO_ExamineDir_Context when allocating the ExamineData structures. IIRC I missed that in one of my first attempts and it caused some problems. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/2/18 11:21
#36 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
@salass00
I'll have a look. I think the problem is on the WebDAV side though - when scanning directories the directory being scanned is also returned as an entry. For root this causes the first entry to have a NULL filename, so I need to somehow filter it out without returning an error. At least I *think* that's why it's crashing. |
|
|
Re: Anyone use WebDAV and want to test new handler? |
Posted on: 2014/6/28 21:02
#37 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/11/17 22:40 From England
Posts: 2862
|
OK, I've finally fixed this so it is now using the new 64-bit capable directory scanning functions. It seems to have broken something else as I'm getting various crashes and MultiView won't open any files direct from a WebDAV share.
But anyway, it largely works and I've released a new beta for people to play with. http://www.openamiga.org/?function=viewfiles&projectid=63 Any feedback can be posted here. |
|