Giter Club home page Giter Club logo

dnn.documents's People

Contributors

mitchelsellers avatar valadas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnn.documents's Issues

Download link should download documents, regardless of the Force Download setting. It doesn't.

Describe the bug
The "Download" link should download the document, regardless of the "Open Link in New Browser Window" setting. It doesn't.

To Reproduce
Steps to reproduce the behavior:

  1. Add a document, ensuring Force Download is not ticked
  2. View the list of documents, and click on the "Download" link
  3. You will notice the forcedownload=true parameter of the hyperlink has not been added

Expected behavior
When the Force Download is not ticked, the Download link should still download the file; instead of opening it in the browser window.

DNN Information (please complete the following information):

  • DNN Version 9.9.1
  • Documents Module Version 7.01.00

Desktop (please complete the following information):

  • OS: Win 10
  • Browser: Edge or Chrome

Additional context
I know the code fix, and have emailed Mitchel Sellers for permission/instructions for how to get the fix implemented.

  • File = Document.ascx.vb
  • Line = 212
  • Old line:
    .NavigateUrl = DotNetNuke.Common.Globals.LinkClick(objDocument.Url, TabId, ModuleId, objDocument.TrackClicks, objDocument.ForceDownload)
  • New line:
    .NavigateUrl = DotNetNuke.Common.Globals.LinkClick(objDocument.Url, TabId, ModuleId, objDocument.TrackClicks, True)

Issue installing module on DNN 9 instance

Describe the bug
When installing extension on DNN 9 instance, I receive the following SQL error:

Failure SQL Execution resulted in following Exceptions:
System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near 'DefaultFolder'.
Incorrect syntax near 'AllowUserSort'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script, Int32 timeoutSec)
ClientConnectionId:a0f90f14-cb15-41b2-a77e-6507bb21de9e
Error Number:102,State:1,Class:15

--Discrepancy fix for upgrades prior to version 06.00.00
IF (SELECT COLUMNPROPERTY( OBJECT_ID('dbo.DocumentsSettings'),'AllowUserSort','AllowsNull')) IS NULL
ALTER TABLE dbo.DocumentsSettings
DefaultFolder NVARCHAR(2000) NULL,
CategoriesListName NVARCHAR(50) NULL,
ADD AllowUserSort BIT NULL

To Reproduce
Steps to reproduce the behavior:

  1. Go to instance for DNN 9
  2. Click on Settings -> Extensions
  3. Install DNN.Documents 7.0
  4. See error

Expected behavior
Module should install to DNN instance.

Screenshots
If applicable, add screenshots to help explain your problem.

DNN Information (please complete the following information):

  • DNN Version 9
  • Documents Module Version 7.0

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser chrome, IE
  • Version [e.g. 22]

Additional context
Compiled and built the package to install. Upgrading module from 5.0 to 7.0. Seems like 6.0 sql exception is preventing installation on DNN 9.

Default folder is not being used when adding a doc

Describe the bug
You set the default folder in the module settings. When you go to add a new document the default folder is not being used. Root is being used.

To Reproduce
Steps to reproduce the behavior:
You set the default folder in the module settings. When you go to add a new document the default folder is not being used. Root is being used.

Expected behavior
The default folder would be shown when adding a new document

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

DNN Information (please complete the following information):

  • DNN Version 9.4.1
  • Documents Module Version 7.1.0

Desktop (please complete the following information):
does not matter

Smartphone (please complete the following information):
does not matter

Additional context
Add any other context about the problem here.

Errors after upgrade

I upgraded my DNN Documents module from v6.2.5 to v7.0.0 then upgraded DNN from v9.1.1 to v9.2.2. I got no errors during any of the installs but when I tried to add a new document to make sure the module still worked as expected I got the followed error:

image

and then the following is added to my log files:

2021-12-13 09:47:08,124 [SERVERREPLACED][Thread:5][ERROR] DotNetNuke.Services.Exceptions.Exceptions - FriendlyMessage="Error:  is currently unavailable." ctrl="ASP.desktopmodules_documents_editdocs_ascx" exc="System.ArgumentException: Item has already been added. Key in dictionary: ''  Key being added: ''
   at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
   at DotNetNuke.Modules.Documents.EditDocs.CheckRolesMatch(ModulePermissionCollection ModuleRoles, FolderPermissionCollection FileRoles)
   at DotNetNuke.Modules.Documents.EditDocs.CheckFileSecurity(String Url)
   at DotNetNuke.Modules.Documents.EditDocs.Update(Boolean Override)"
2021-12-13 09:47:09,311 [SERVERREPLACED][Thread:6][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.Exception: Job #185be6d7-1401-434b-97f1-c998e7c51bf7 (Item dnnfile-6693 from portal 0) is skipped and will be removed from queue. Job details: {"Guid":"185be6d7-1401-434b-97f1-c998e7c51bf7","Priority":5,"Due":"2021-12-13T14:47:03.233+00:00","Action":"add","BehaviorId":4,"PortalId":0,"TabId":-1,"ModuleId":-1,"ItemId":"dnnfile-6693","Contents":null,"ContentType":"application/pdf","Metadata":{"PortalId":0,"ItemId":null,"Title":"","LockTitle":false,"OriginalId":null,"OriginalName":null,"OriginalPath":null,"AuthorId":0,"AuthorName":null,"TitleToken":"","Description":"","LockDescription":false,"Keywords":"","Boost":null,"OverrideUrl":null,"Source":null,"LinkToTabId":null,"Categories":[],"UrlHash":null,"Data":[],"Locale":null,"IgnoreSecurity":null,"FileTime":"0001-01-01T00:00:00","Roles":[],"DeniedRoles":[],"AllowedUsers":[],"DeniedUsers":[],"Type":null,"SubType":null,"ContainerPath":null,"ItemPath":null,"Url":null,"DatePublished":"0001-01-01T00:00:00+00:00","QueryString":null,"ContainerId":null,"ContainerName":null},"ContentSourceId":"DnnFiles","ContentClient":"DnnFile","ContentClientOptions":null,"ContentParser":"","ContentParserOptions":null,"DatePublished":"2021-12-13T14:47:03.233+00:00","Status":"Skip","RetryCount":0,"IsDeleted":false}

The error seems to speak to roles and permissions. I am currently signed in as a superuser and I checked that the selected folder does have the correct permissions so Iโ€™m a bit stumped. Any help would be appreciated.

I also tried updating the Documents module again from v7.0 to v7.1 and I have the same errors.

Upgrade from 3.15

where can I get version 5 from ? In the notes it says below.
NOTE: If Upgrading from versions PRIOR to 05.00.00 upgrade to 05.00.00 FIRST!

Error in log Error Creating BusinessControllerClass 'DotNetNuke.Modules.Documents.DocumentController, DotNetNuke.Modules.Documents

ExceptionHash:ZzlHNgMxMIdZRsFN9hbheNEmjbA=

Message:Error Creating BusinessControllerClass 'DotNetNuke.Modules.Documents.DocumentController, DotNetNuke.Modules.Documents' of module(DNN_Documents) id=(553) in tab(120) and portal(1)

StackTrace:

at DotNetNuke.Services.Search.ModuleIndexer.ThrowLogError(ModuleInfo module, Exception ex)

InnerMessage:Value cannot be null. Parameter name: type

InnerStackTrace:

at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 portalId)

Source:DotNetNuke

U bent niet bevoegd om bestanden te uploaden.

Wij gebruiken de module Documents 07.01.00 in een DNN 9.11 installatie. Juist geautomatiseerde gebruikers krijgen de foutmelding 'U bent niet bevoegd om bestanden te uploaden.'. Gebruikers zijn lid van een rol die ook in de module en de resource managers is toegekend. Wat kan hier aan de hand zijn?

On Delete, Delete the Document File Too

We are using the latest DNN Document module on our sites with DNN platform 9.2.2. installed.

A problem with that module is, when users delete the document entry in the module goes well, but the fysical document is not deleted.

My question is het possible to ask the user if he also want to delete the fysical document on the disk at the server?

Error When Using / Viewing Documents Module

Describe the bug
After installing the Documents module on a new DNN Platform installation v9.2.1, it seems to work on the first view, and then moving to another page and back again seems to cause it to "break"?

DNN Information (please complete the following information):

  • DNN v9.2.1 (Platform)
  • Documents Module v7.1.0

Desktop (please complete the following information):

  • OS: Windows 7
  • Browser: Chrome
  • Version: 71.0.3578.98

Error Log Entry
UserAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Message:[REDACTED]\wwwroot\DesktopModules\Documents\Document.ascx(83): error BC30002: Type 'int' is not defined.

StackTrace:
InnerMessage:[REDACTED]\wwwroot\DesktopModules\Documents\Document.ascx(83): error BC30002: Type 'int' is not defined.
InnerStackTrace:
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl()

DNN v9.2 - Not able to add new category in documents module

After installing the Documents module on DNN v9.2, It seems good & display all the categories, documents which were created in DNN v8.3.

Add new category
Click edit document module > settings > documents module documents
When i tried to create a new category, It points to you can manage lists under "Host" -> "Lists"
image

Host" -> "Lists"
So where I can find this option in DNN 9.2 to create a new category. If it's removed, perhaps any other option to do the same.

Can you please help me to point out what went wrong!

DNN 8.0.4 Documents 7.0.1 : Object reference not set to an instance of an object.

After installation of Documents 7.0.1 I seem to be getting a critical error. Here is the EventLog. Can anyone shed some light on this?

AbsoluteURL:/Default.aspx DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID:6d4f8afe-2e27-4c01-8489-0bdf637a3577 AssemblyVersion:8.0.4 PortalId:1 UserId:64 TabId:143 RawUrl:/IT.aspx Referrer:http://MYSITE/Host/Extensions/tabid/36/portalid/1/Default.aspx UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36 ExceptionHash:3OyrEXqj7Xg9kVRIdKfQaw== Message:Object reference not set to an instance of an object. StackTrace: InnerMessage:Object reference not set to an instance of an object. InnerStackTrace: at ASP.desktopmodules_documents_document_ascx.Tokenize(String strContent, ModuleInfo modInfo, Boolean forceDebug, Boolean bRevertToDnn) at ASP.desktopmodules_documents_document_ascx.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Source: FileName: FileLineNumber:0 FileColumnNumber:0 Method: Server Name: MYSERVER

Ability to Add Multiple Documents

Initially Submitted Via CodePlex:
Then copied here from mitchelsellers/dnnDocuments#2

I use the documents module all the time on our DNN 7.1 CMS to manage .pdfs and other documents. We're expanding all the time and our 70 or so clients each have a page on their site called the Reference Center which calls about 8-16 document modules to display 30-60 documents between them.

It is no trouble to upload all of the documents to the file manager. However it is incredibly time consuming to add documents from the file manager to the documents module. I have to click the "Add New Document" option for every file I want the user to see on our page.

Is there anyway to expand on the functionality of the documents module such that a user can select multiple files to add from the file manager to the document? I'm afraid I've no head for programming and I'm not sure where to go next. The kind folks of the DNN forum pointed me in your direction ale the link below.

http://www.dnnsoftware.com/forums/forumid/199/threadid/521005/scope/posts

Thank you in advance!
Zack Robinson

Cannot edit document, clicking on edit pencil crashes website

Describe the bug:
When administrating the DNN.Documents module, the admin is no longer able to open up the edit page (in order to edit or delete the document) after having clicked on the pencil in front of the document. The edit page is NOT opening and the whole website takes up all the resources to load.

To Reproduce:
Steps to reproduce the behavior:

  1. Install or go to the DNN.Documents module (better do this on a test page)
  2. Upload a document
  3. Click on the pencil
  4. the module tries to opens the file but nothing happens and the site crashes.
  5. There are NO errors written in the Admin Log :(

Expected behavior:
The expected behavior of clicking on the pencil is to open up the edit page.

DNN Information:

  • DNN Version 9.11.1 (occurs in both upgraded versions as in fresh installs)
  • Documents Module Version 7.1.0

Desktop:

  • OS: Windows 10
  • Occurs in all browsers

Additional context:
I tried adding the value 'ItemID' in the 'Keep in Querystring Regular Expression' field, in the SEO section but that didn't do anything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.