|
|
Hi everyone,
Don't find this in extranet documentation.
This is the use case :
- Display a private file link download into a public page
- If the user is not logged, instead of redirect to page 500, I want to redirect to the login page.
- BUT, and this is important, when the user logged in to the application, he must be redirect to the private file download link
Thanks for your advice on this.
Regards
|
|
|
|
|
Another question related to Extranet package:
I want to use the "Remember Password" form and I got an error "Failed to send password".
I've configure SMTP in web.config (and it is working, i've made a contactform using form renderers who sends e-mail).
The page takes a lot of time to display the error and I've no error in the logs.
Thanks for your advice.
Regards,
Jonathan
|
|
|
Developer
Jun 7, 2012 at 9:09 AM
|
Hi Jonathan
JonathanEIT wrote:
...
This is the use case :
- Display a private file link download into a public page
- If the user is not logged, instead of redirect to page 500, I want to redirect to the login page.
- BUT, and this is important, when the user logged in to the application, he must be redirect to the private file download link
The new version of the Extranet package - v. 1.6.8 - will do the trick.
Links to the extranet-protected files in the media archive will redirect to the Login page if the user (extranet user) is not logged in; otherwise, he/she will be able to download the file.
This new version is now available online (System > Packages > Available Packages > Composite.Community > Composite.Community.Extranet).
/Vitaly
|
|
|
Developer
Jun 7, 2012 at 9:17 AM
Edited Jun 7, 2012 at 9:18 AM
|
JonathanEIT wrote:
Another question related to Extranet package:
I want to use the "Remember Password" form and I got an error "Failed to send password".
I've configure SMTP in web.config (and it is working, i've made a contactform using form renderers who sends e-mail).
The page takes a lot of time to display the error and I've no error in the logs.
Thanks for your advice.
Regards,
Jonathan
I'm afraid I can't reproduce it for now.
Could you please confirm these settings?
- You use the Composite.Community.Extranet.SendPasswordForm function for restoring passwords.
- The extranet user you want to resend the password to has the email address specified in the Email field in the Extranet
- The email address you enter in the form when trying to resend the password is the same as specified in 2.
Please also note that you might need to wrap the content of the page (where the Composite.Community.Extranet.SendPasswordForm function is inserted) with <asp:form></asp:form> as described
here.
/Vitaly
|
|
|
Jun 7, 2012 at 12:49 PM
Edited Jun 7, 2012 at 12:49 PM
|
Hi wysocki,
- For the download, this is OK in the new version, I was in v.1.6.7.
By the way, is there any other way to update a package compare to what I've done "uninstall / reinstall" ? I've googled "Composite C1 update package" (and so on) : no information found...
- The update did not solved the send password functionnality. So to answer your question:
- Yes
- Yes
- Yes
And I've just test wrapping the function into asp:form even tough it was not necessary in this case (there are no other form in the page)
I'm in IIS and visual studio so i can debug this if you want but it would be easier if you give me the file and the line where I had to put a breakpoint to gain some times...
KR,
John
|
|
|
|
|
Additional information: newsletter package is working like a charm.
|
|
|
Developer
Jun 7, 2012 at 1:12 PM
|
JonathanEIT wrote:
Hi wysocki,
- ...By the way, is there any other way to update a package compare to what I've done "uninstall / reinstall" ? I've googled "Composite C1 update package" (and so on) : no information found...
Normally, you are expected to uninstall the package first and then install a new version.
As a "hack", you can do this: the only changed item in the package 1.6.7 vs 1.6.8 was Bin\Composite.Community.Extranet.dll. So you can download it here and
replace it in /Bin. (Let me know when I can delete it.)
JonathanEIT wrote:
- The update did not solved the send password functionnality...
I'm in IIS and visual studio so i can debug this if you want but it would be easier if you give me the file and the line where I had to put a breakpoint to gain some times...
I'll get back to you on this in a few moments
|
|
|
|
|
1. No problem with install / uninstall, this was because i've modified HTML for forms, so I had to backup my modifications and replace files after the update.
(F.I. : I tested recover password functionnality with the template of the package, not a modified one).
I also lost localization in french, just have to add again the culture in composite.config.
So you can remove the file, but thanks for your support on this.
2. OK
KR
|
|
|
Developer
Jun 7, 2012 at 1:42 PM
|
On the SendPassword issue:
BTW, do you run Composite C1 v 3.2 or other (earlier) version? I assume that your version is 3.2.
To debug the code and put breakspoints, you need to make the send password functionality available in your VS:
- Donwload
this file and put it in /App_Code.
- Edit this XSLT function in the C1 Console: Composite.Community.Extranet.SendPasswordForm
- On the Template tab, scroll down to the end.
- Add <msxsl:assembly name="App_Code"/> under <msxsl:assembly name="Composite.Community.Extranet"/>
- Replace public bool SendPassword(string providerName, string userId) {...} with this code:
public bool SendPassword(string providerName, string userId)
{
return Test.Extranet.SendPassword(providerName, userId);
}
- Save the function.
In this way, you will move the C# code from XSLT into a .cs file and use it from there. So that you can debug the "send password" code now.
Hope this will help.
/Vitaly
|
|
|
|
|
You assume well, --> v 3.2.
I do a backup ;-) and i'll try what you said. I'll do a feedback asap.
|
|
|
|
|
Found it. Problem with:
MailAddress mailFrom = new MailAddress("no-reply@extranet.net");
"e = {"Error in processing. The server response was: #4.1.8 Domain of sender address <no-reply@extranet.net> does not resolve"}"
I changed this myself in the code (by another email address) and this is working BUT is this normal ? I assume that i've missed some configuration...
Many thanks for your help.
Regards
|
|
|
Developer
Jun 8, 2012 at 12:51 PM
Edited Jun 8, 2012 at 12:51 PM
|
Hi Jonathan,
Thank you for reporting this issue. Obviously it is not normal.
I have logged this issue
here. It should be fixed in the next versions of Extranet.
Sorry for inconveniences.
/Vitaly
|
|
|
|
|
Hi Wysocki,
You are welcome.
Regards,
|
|
|
Developer
Aug 9, 2012 at 12:15 PM
|
FYI: The issue has been fixed in Extranet v.1.6.9, which is now available online
|
|