Using External Users

If you are having a problem using Dragnet, post a message here.

Moderator: SourceGear

akselsoft

Using External Users

Post by akselsoft » Mon Dec 27, 2004 7:10 am

Hi. According to the documentation, when ExternalUsers are enabled on a project, you should be able to provide a link to the http://localhost/dragnet/external/addit ... px?pid=101 and anyone should be able to add an item - is that right?

If so, why is it then when I go to this link, it immediately kicks back into "enter login" information.

Shouldn't they be able to bypass that?

Or am I misunderstanding the feature?

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon Dec 27, 2004 8:30 am

It shouldn't prompt for any login. Did you run an upgrade / modify when installing Dragnet 1.0.1 or did you un-install / reinstall?

Can you examine your Dragnet server's web.config for the following XML element?

Code: Select all

<configuration>

<location path="AddItemExternal.aspx">
   <system.web>
      <authorization>
         <allow users="*"/>
      </authorization>
   </system.web>
 </location>

</configuration>
Also note, the feature must be turned on. If you view the particular project's properties, you will have to enable the "Allow external submissions" property.
Jeff Clausius
SourceGear

akselsoft

External User

Post by akselsoft » Mon Dec 27, 2004 8:47 am

Jeff,

Thanks - I think the web.config was the problem. By default, it's turned off so it wouldn't permit it.

Now that I made that change - it worked perfectly!!!

Thanks so much!

akselsoft

Spoke too soon

Post by akselsoft » Mon Dec 27, 2004 9:00 am

When I made the change, I could access it remotely but now when I try to access it internally, I get an error.:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

In addition, hitting the Submit button on the remote page doesn't do anything.

The call stack shows:
[NullReferenceException: Object reference not set to an instance of an object.]
MantisServiceLib.Helpers.ListTrackingStartPage(Page mPage) +84
Mantis.Default.Page_Load(Object sender, EventArgs e) +48
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

I just did an IISRESET to see if that helps anything. Now I get an App Event Log message that says:
The account that the current worker process is running under does not have SeTcbPrivilege privilege, the anonymous password sync feature and the Digest authentication feature are disabled.

Now I'm not running ActiveDirectory - so what do I have to change to get this running again?

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon Dec 27, 2004 9:09 am

If you try to submit from a browser on the Dragnet server itself, do you get the same error?
Jeff Clausius
SourceGear

akselsoft

User Process

Post by akselsoft » Mon Dec 27, 2004 9:13 am

Currently the directory security is configured to IUSR_

akselsoft

External user

Post by akselsoft » Mon Dec 27, 2004 9:14 am

Jeff,

To answer your question - yes. I can't even log into DragNet at all anymore.

akselsoft

Logging in

Post by akselsoft » Mon Dec 27, 2004 9:24 am

Jeff,

More on this. I looked at my entire Web.Config.

I was incorrect the last time.
The line I changed in WEb.Config was the first one that says
<authorization>
<!-- <allow users="*"/>--> <!-- Allow all users -->

My ExternalAddItem.aspx is already set to allow users *. If I modify the main one to Allow Users. I can get access to the page remotely but I can't submit it.

When I do this, I can no longer access DragNet (with the earlier noted messages)

When I reset it back so that the main web.config authorization does not allow users. It works fine.

I tried to see if my install was correct but the link on the web site to the installation guide is invalid.

If you think it would be easier to speak with me about this, my number is 613-851-4496. Otherwise I'll keep on posting here.

Thanks

akselsoft

IP for viewing

Post by akselsoft » Mon Dec 27, 2004 9:27 am

here is the IP we are publicly posting to:

http://69.196.215.56/Dragnet/External/A ... px?pid=101

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Mon Dec 27, 2004 9:48 am

The additional entries in Web.config for external items should actually be:

<location path="Error.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

<location path="External">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

Remove the <location path="additemexternal.aspx"> entry and add the above entries to web.config.

I am not sure if that is the cause of the problem you are seeing or not.

If you continue to have problems, email me your web.config file (use the email button at the bottom of this message).
Mary Jo Skrobul
SourceGear

akselsoft

seems to be better byut..

Post by akselsoft » Mon Dec 27, 2004 10:02 am

OK - seemed to be better but what should happen when user hits Submit?

Right now, nothing seems to be happening and the item is not being added.

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Mon Dec 27, 2004 10:14 am

You should get a message on the add external item page that says "item added" when the addition is successful.

Are there any errors logged to the log file?

Do you have still have external submissions enabled for the Project you are trying to add to?
Mary Jo Skrobul
SourceGear

akselsoft

Enable External Adds

Post by akselsoft » Mon Dec 27, 2004 12:52 pm

Yes, External Adds is turned on.

Nothing seems to fire on that particular link.

Try it with the URL Noted earlier : http://69.196.215.56/Dragnet/External/A ... px?pid=101

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Mon Dec 27, 2004 1:02 pm

That is weird.

Try uninstalling Dragnet then re-installing it. Make sure and keep your database during the un-install and re-install process. Maybe somthing didn't get upgraded correctlly.
Mary Jo Skrobul
SourceGear

akselsoft

Reinstalled - same problem

Post by akselsoft » Mon Dec 27, 2004 3:36 pm

Just reinstalled (after re-downloading ensuring I had the most recent version)

The error reported on the remote site shows a JavaScript Error that says:

Line 197 (Char 10)
Document.GetElementByID(...) is null or not an object

But on other browsers, it just sits there and does nothing.

Even tried it localy - no response at all.

Any other ideas?

Locked