|Аноним | вход | зарегистрировать новую учетную запись||2020-07-04 05:44 EEST|
|главная | моя сводка | список вопросов | журнал изменений | план развития | документация | моя учетная запись|
|0000141||[obex-data-server] FTP||нововведение||неприменима||2008-10-09 05:39||2008-10-13 03:11|
|Суть||0000141: Lack of interaction btwn ODS and host application regarding FTP operations|
If a remote FTP client connects to the ODS FTP server and tries to remove a local file or create a new folder, ODS does that delete or create operation checking the write permission. After that operation, ODS does not send any feedback to the host application which have invoked ODS.
This may incur a problem if the host application wishes to notify the user that some files or folders have been modified. We need a feedback or interaction mechanism for this case.
I think the best way to solve this problem is to introduce an authorization procedure for the create and delete operations asking the host application whether to accept or reject the FTP operation. This is similar to the connection authorization procedure.
Or I think ODS should at least send back a signal indicating that the operation has performed with the file or folder path information.
How do you think about the necessity of introducing an authorization procedure or notification signals for the delete or create operations.
|Tэги||Нет прикрепленных тэгов.|
I've not tested this myself but looking through the source it would appear that you are correct. Certain methods such as CreateFolder() are asynchronous so they dont return a value, nor is a signal emmited to notify the user of the actions success/failure, like you would get with something like SendFile().
I think the two real options are to iether make these methods synchronous, so they dont return untill the opperation is complete, iether with a sucess or error message, or, we place additional signals on the session, similar to TransferStarted() and TransferComplete() which signal when an opperation has been completed FolderCreated(folder_name) for instance.
I know that Tadas always strives to keep the API as clean as possible so he might not be too keen on the signals additions, I supose the real determining factor is would/can you send multiple CreateFolder() requests at any one time? if you're only looking to do one at a time then making the methods syncronous with a return value makes most sense.
Just my thoughts,
Lately, I'm getting quiet confused with new bugs :) This is one of them, because I don't really understand what you are trying to do. From bug description I understand that you are doing these things:
1) run FTP server using obex-data-server
2) connect to it using some device and create folder or delete some file
If you are saying that ods doesn't send a proper response in case operation fails then you are wrong, because it does. For every failed condition (like no write permission or smth else), ods sends corresponding OBEX response (for example if there are no write permission, ods sends OBEX_RSP_UNAUTHORIZED).
So please explain exactly what you are doing and what you expect, then I can help you.
изменен: 2008-10-10 03:00
Hi, Heston and Tadas,
Normally we run a hosting bluetooth application that communicates with ODS via dbus. And the application wants to know whether the requested operation is successful or not so that the user can be informed the current status of operation. In the cases of file transfer or receive, ODS sends continuous signals to the application with proper information. So the application can, for example, draw a progress bar accordingly.
In the case of file deleteion or folder createion, ODS sends success or failure OBEX responses to the remote counterpart bluetooth application but not any response to the hosting bluetooth application. What I want to do is to give a proper notifcation to the user who run the bluetooth application with appropriate GUI updates like a pop-up winodw or list update.
As Hesston said, if CreateFolder or DeleteFile method works in a synchronous manner I think it is the best. Serialized multiple requests can be done in a safe manner in that case. Or the addtion of deleted or created signals would also satisfy the user notification process.
It's like that you are very busy keeping your good work. Cheer up :)
|Still one unclear thing. Are you running a Session or a Server with ods?|
изменен: 2008-10-13 03:03
I am trying to run ODS FTP server and client at the same time as well as OPP server and client. But two clients should not be run simultaneously. I wonder how this is relatd to the above issue :)
|2008-10-09 05:39||Jo||Новый вопрос|
|2008-10-09 11:39||heston_james||Комментарий добавлен: 0000447|
|2008-10-09 20:49||skirsdeda||Комментарий добавлен: 0000453|
|2008-10-09 20:49||skirsdeda||Ответственный||=> skirsdeda|
|2008-10-09 20:49||skirsdeda||Состояние||новый => нужен отклик|
|2008-10-10 02:52||Jo||Комментарий добавлен: 0000461|
|2008-10-10 03:00||Jo||Комментарий изменен: 0000461|
|2008-10-10 03:17||skirsdeda||Комментарий добавлен: 0000464|
|2008-10-13 02:51||Jo||Комментарий добавлен: 0000472|
|2008-10-13 03:03||Jo||Комментарий изменен: 0000472|
|2008-10-13 03:11||skirsdeda||Состояние||нужен отклик => назначен|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|