[ 
https://jira.duraspace.org/browse/DS-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27643#comment-27643
 ] 

Ivan Masár commented on DS-1456:
--------------------------------

Good question :)

We might start by looking at dspace.url and try to find out from HTML. Of 
course, this is ugly and HTML can be customized to any extent, so we might 
modify JSPUI and XMLUI to send a HTTP header with this information (I can think 
of other use cases for this, too), e.g. X-DSpace-version.
Any other approach is problematic because there's no other definition of the 
"main" interface.

To list all interfaces, we could look them up in [dspace]/webapps, but not 
everyone uses this approach. There should be another approach to list deployed 
webapps, regardless of servlet container, because webapps like the manager 
webapp distributed with Tomcat or other webapps like Psi probe are able to list 
webapps available to the servlet container and even deploy/undeploy them. If 
this works, we can determine the "main" interface by matching it's context path 
to dspace.url, which is a nicer approach than the previous one I described (if 
it works).
                
> "dspace version" command-line script
> ------------------------------------
>
>                 Key: DS-1456
>                 URL: https://jira.duraspace.org/browse/DS-1456
>             Project: DSpace
>          Issue Type: New Feature
>            Reporter: Ivan Masár
>            Assignee: Mark H. Wood
>
> We should provide a "[dspace]/bin/dspace version" script, which would gather 
> the basic information about DSpace and its environment that is necessary to 
> ask questions on dspace-tech.
> This information includes most prominently:
> * DSpace version
> * OS version
> * UI(s) used
> * is Discovery enabled?
> somewhat less often important:
> * JDK version
> * ant version
> * maven version
> * path to DSpace
> Optional flags could produce even more information, pulled from 
> configuration, e.g. database configuration, hostname/URL configuration, 
> authentication configuration (with passwords omited), etc.
> Most of this information is already available in the XMLUI admin Control 
> panel, so some of those methods could be reused.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to