URL Mapping in XML UI

61 views
Skip to first unread message

Faiyaz Ahmed

unread,
Nov 19, 2015, 8:42:57 AM11/19/15
to DSpace Technical Support
Hello All,

Hope all you doing well. I have an requirement to change some in URL mapping. Below I have defined steps.

1- The Default URL is : http://localhost:8080/xmlui/
2- I want to change it to :http://localhost:8080/xmlui/password-login .
3- Any time I open the http://localhost:8080/xmlui/ it should redirect to http://localhost:8080/xmlui/password-login.
4 - When I logged in, then it will redirect to http://localhost:8080/xmlui/community-list.
5 - When I logged out, then it will back to http://localhost:8080/xmlui/password-login.

Does any one know how I can fulfill my above requirement in Dspace 5.3 version with Mirage2 theme.

Regards,
Faiyaz Ahmed

Franziska Ackermann

unread,
Nov 19, 2015, 8:59:05 AM11/19/15
to dspac...@googlegroups.com
Hi,

as for "4 - When I logged in, then it will redirect to http://localhost:8080/xmlui/community-list."

https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L1948-L1953

Best regards,
Franziska Ackermann
--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Faiyaz Ahmed

unread,
Nov 19, 2015, 9:31:18 AM11/19/15
to DSpace Technical Support, franziska...@uni-ulm.de
Hi ,

The point 4, I have now test and working absolutely fine. Thank you so much,

Do you have any idea about reset of any step?

Regards,

Faiyaz Ahmed

Faiyaz Ahmed

unread,
Nov 19, 2015, 10:46:33 AM11/19/15
to DSpace Technical Support, franziska...@uni-ulm.de
Or is it possible to use ReWrite rule?

Regards,

Faiyaz Ahmed

--
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/LqKYSS7ooO8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.

Faiyaz Ahmed

unread,
Nov 22, 2015, 8:58:50 AM11/22/15
to DSpace Technical Support, franziska...@uni-ulm.de
Do any one have idea about my requirements?
Faiyaz Ahmed

To unsubscribe from this group and all its topics, send an email to dspace-tech+unsubscribe@googlegroups.com.

helix84

unread,
Nov 22, 2015, 9:21:16 AM11/22/15
to Faiyaz Ahmed, DSpace Technical Support, Franziska Ackermann
On Thu, Nov 19, 2015 at 4:45 PM, Faiyaz Ahmed <faiyaza...@gmail.com> wrote:
> Or is it possible to use ReWrite rule?

mod_rewrite has the ability of conditional rewriting based on cookies
(RewriteCond %{HTTP_COOKIE} regex), so in theory, that could be used.
However, I don't think you could do that without modifying DSpace,
because DSpace plants the JSESSIONID cookie regardless of whether your
session is anonymous or logged in. So you would have to modify DSpace
to set another cookie on login with expiration time matching length of
a login session, set it again on each page load while logged in to
prolong the expiration time and remove it when logging out. There
might still be a slight mismatch of the cookie and session expiry
time, though.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Faiyaz Ahmed

unread,
Nov 23, 2015, 8:01:08 AM11/23/15
to DSpace Technical Support, faiyaza...@gmail.com, franziska...@uni-ulm.de, hel...@centrum.sk
Thanks you so much for the prompt response Helix.

There are some confusion I have now in new version of Dspace 5. I can not locate .class files in XMLUI folder. I can not see changes which I modify in .java files and running mvn package then ant update.

In previous version this path : C:\dspace\webapps\xmlui\WEB-INF\classes contains all complied files. But in Dspace 5 version this folder is completely empty.

Anyone know how to deploy new changes in Dspace 5.

Regards,
Faiyaz Ahmed

Faiyaz Ahmed

unread,
Nov 23, 2015, 8:18:53 AM11/23/15
to DSpace Technical Support, faiyaza...@gmail.com, franziska...@uni-ulm.de, hel...@centrum.sk
Guys,

I have got the path files. Below are in the dspace-xmlui-5.3-classes.jar

C:\dspace\webapps\xmlui\WEB-INF\lib\dspace-xmlui-5.3-classes.jar


Regards,
Faiyaz Ahmed

Franziska Ackermann

unread,
Nov 23, 2015, 8:50:35 AM11/23/15
to DSpace Technical Support
Dear list,

I believe I found a bug related to the "take task" button during the workflow process.

As an administrator, I click on "take task" and the item is assigned to me to be reviewed.
As a non-administrator with workflow step rights (let's say "Reviewer1"), I click on "take task" and get this error:

You are not allowed to perform this task.

Java stacktrace:
org.dspace.authorize.AuthorizeException: You are not allowed to perform this task. at org.dspace.app.xmlui.aspect.workflow.FlowUtils.authorizeWorkflowItem(FlowUtils.java:164) at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160) at org.mozilla.javascript.Context.call(Context.java:538) at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833)
....


However, the item is assigned to "Reviewer1
" in the database. This becomes evident when you reload the submission page. The item will then appear under "Tasks you own".

Do you have any suggestions on how to fix this?

Best regards,
Franziska Ackermann

Franziska Ackermann

unread,
Nov 25, 2015, 8:06:18 AM11/25/15
to dspac...@googlegroups.com
Hi,

I could verify the error I described earlier on the demo machine (XMLUI, 5.4).
As described below, the error only happens when a user with Workflow-Step rights and without administrator rights tries to take an item from the pool by clicking the "take task" button.




Best regards,
Franziska Ackermann

helix84

unread,
Nov 25, 2015, 12:25:13 PM11/25/15
to Franziska Ackermann, DSpace Technical Support
I created a bug report on your behalf (bugs reported on the mailing
lists are usually forgotten):

https://jira.duraspace.org/browse/DS-2920

Franziska Ackermann

unread,
Nov 26, 2015, 6:01:20 AM11/26/15
to DSpace Technical Support
Thank you, helix, for creating the bug report.

I found another bug related to the submission form:
https://jira.duraspace.org/browse/DS-2922

If someone could point us to the file which needs editing, we'd be happy
to look into it.

Best regards,
Franziska Ackermann

Alan Orth

unread,
Nov 30, 2016, 1:27:11 AM11/30/16
to Franziska Ackermann, DSpace Technical Support
We just upgraded from DSpace 5.1 to 5.5 and are hitting the "take task" bug as well. There is a comment on the Jira issue[0] with a one-line hack that seems to work on our test server.

Can anyone comment on if the one-line hack to invalidate the authorization cache check is appropriate or not?

Thank you,



--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Reply all
Reply to author
Forward
0 new messages