Closed Bug 284632 Opened 20 years ago Closed 8 years ago

Add notification (authentication) support in webdav

Categories

(Core Graveyard :: WebDAV, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: stelian, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1

currently the webdav extension code does not do authentification at all.

the attached patch adds a notificationCallbacks attribute to nsIWebDAVResource.
This callback gets propagated to the channel and is called when an
authentification is necessary.

An application can use this callback to call a nsIAuthPrompt implementation...

Reproducible: Always
Hrm, I'm not sure that the notification callbacks are really part of the
resource.   I'd like to put locks on the resource, because pretty much any
operation on a given resource will want to use any present locks, but different
operations on a given resource may well want different notification targets.

I also _loathe_ nsIInterfaceRequestor, but I guess that's the interface necko
wants here.  Hmph.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Add authentification support in webdav → Add notification (authentication) support in webdav
So I still don't like having it on the resource interface.  What do people think
about

/**
 * Return an interface pointer that will use the provided notificationCallbacks
 * for all appropriate network operations.
 */
nsIWebDAVService getAuthenticatingWrapper(in nsIInterfaceRequestor
notificationCallbacks);

on nsIWebDAVService?
This is ok for me.
Mass abdication.
Assignee: shaver → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: