Re: [Dspace-tech] CC Licence step not completing?

2015-08-11 Thread Michael White
Hi Andrea,

 Is there anything useful in the dspace log file?

Not really - running at DEBUG, I can see when the CC Licence step is being 
accessed - the below snippet is what I get when I click Next to go to the CC 
Licence step:

2015-08-11 11:06:16,803 DEBUG org.dspace.app.webui.servlet.SubmissionController 
@ Calling Step Class: 'org.dspace.submit.step.CCLicenseStep'
2015-08-11 11:06:16,805 DEBUG org.dspace.app.webui.submit.JSPStepManager @ 
Doing pre-processing for step org.dspace.app.webui.submit.JSPStepManager
2015-08-11 11:06:17,294 DEBUG org.dspace.storage.rdbms.DatabaseManager @ 
Running query SELECT * FROM MetadataValue WHERE resource_id= ? and 
resource_type_id = ? ORDER BY metadata_field_id, place  with parameters: 91,1
2015-08-11 11:06:17,295 DEBUG org.dspace.app.webui.util.JSPManager @ 
michael.wh...@stir.ac.uk:session_id=7FF301D30EC1B9F9E67AFAB59C07A542:ip_addr=139.153.115.7:view_jsp:/submit/creative-commons.jsp

- but as I select radio buttons on the CC Licence page, and click Select a 
Licence, things appear to proceed in the browser but nothing else is logged 
beyond this point - when I click Select a licence to determine the 
appropriate CC licence - I'm presented with a page that says:


provided by Creative Commons
You have selected the Attribution 4.0 International License.
This licence is permanently located at
http://creativecommons.org/licenses/by/4.0/.

You may now proceed


- with proceed being a hyperlink that points to: 
http://datastorre.stir.ac.uk/submit/cc-license.jsp?license_url=http%3A//creativecommons.org/licenses/by/4.0/,
 but when I click that link on the CC Licence page, the iFrame just goes blank 
and nothing further happens (so I can't get beyond this step), and nothing is 
added to the logs beyond the log entries that appeared when I first accessed 
the CC Licence step :-(

If I Cancel out from the empty page, and then Save, and then go back in to Edit 
the record, I can see that the value An error occurred on the license name. 
has been added to dc.rights, and an empty (bar one line containing 
result) license_rdf file has been added to the bitstreams . . . .

 HTTPS vs HTTP should not make any difference to this. However, a network
 proxy would -- does your DSpace instance have direct access to the Internet?

I believe so (we've not had a web proxy here for many years), but I don't work 
at that level so I'm not 100% sure (but I'm certainly going to double check) - 
the fact that I do get the page that shows the licence that applies suggests to 
me that my DSpace is making contact with Creative Commons, but I could be 
mistaken (is the licence selection logic held in DSpace, or is this retrieved 
from CC in real time?). Is the behaviour I'm seeing (i.e. that CC Licence 
selection appears to complete up to the point of clicking Proceed when it 
hangs) what would happen if a proxy was in play but not configured in DSpace?

So, I'm still stuck with this - does anyone have this working in v5.2, JSPUI? 
Did this just work for you after uncommenting the step in 
item-submission.xml? or did you have to do anything special to get it working?

Many thanks as ever,

Mike

Michael White
eLearning Developer
Information Services

T: (01786) 466877
E: michael.wh...@stir.ac.uk
A: S8, Library, University of Stirling, Stirling, FK9 4LA 

-- 
The University is ranked in the QS World Rankings of the top 5% of universities 
in the world (QS World University Rankings, 2014)
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] CC Licence step not completing?

2015-08-11 Thread Andrea Schweer
Hi Mike,

thanks for the extra information -- I agree, there's nothing obvious.

The text you see appear in the metadata comes from here: 
https://github.com/DSpace/DSpace/blob/59f07bd4dab763eaff050a04ce65dd87a4ac84c6/dspace-api/src/main/java/org/dspace/license/CCLookup.java#L399
 
which to me suggests that either the licence document wasn't received 
from CC or doesn't have structure expected by the code. Strangely 
enough, the code just above the one that creates this text logs a 
warning level message, which doesn't appear to come through in your log.

I don't use JSPUI and I don't have time to dig into this more, sorry. 
Hopefully someone else here can help you.

cheers,
Andrea

On 11/08/15 22:28, Michael White wrote:
 Hi Andrea,

 Is there anything useful in the dspace log file?
 Not really - running at DEBUG, I can see when the CC Licence step is being 
 accessed - the below snippet is what I get when I click Next to go to the 
 CC Licence step:

 2015-08-11 11:06:16,803 DEBUG 
 org.dspace.app.webui.servlet.SubmissionController @ Calling Step Class: 
 'org.dspace.submit.step.CCLicenseStep'
 2015-08-11 11:06:16,805 DEBUG org.dspace.app.webui.submit.JSPStepManager @ 
 Doing pre-processing for step org.dspace.app.webui.submit.JSPStepManager
 2015-08-11 11:06:17,294 DEBUG org.dspace.storage.rdbms.DatabaseManager @ 
 Running query SELECT * FROM MetadataValue WHERE resource_id= ? and 
 resource_type_id = ? ORDER BY metadata_field_id, place  with parameters: 91,1
 2015-08-11 11:06:17,295 DEBUG org.dspace.app.webui.util.JSPManager @ 
 michael.wh...@stir.ac.uk:session_id=7FF301D30EC1B9F9E67AFAB59C07A542:ip_addr=139.153.115.7:view_jsp:/submit/creative-commons.jsp

 - but as I select radio buttons on the CC Licence page, and click Select a 
 Licence, things appear to proceed in the browser but nothing else is logged 
 beyond this point - when I click Select a licence to determine the 
 appropriate CC licence - I'm presented with a page that says:

 
 provided by Creative Commons
 You have selected the Attribution 4.0 International License.
 This licence is permanently located at
 http://creativecommons.org/licenses/by/4.0/.

 You may now proceed
 

 - with proceed being a hyperlink that points to: 
 http://datastorre.stir.ac.uk/submit/cc-license.jsp?license_url=http%3A//creativecommons.org/licenses/by/4.0/,
  but when I click that link on the CC Licence page, the iFrame just goes 
 blank and nothing further happens (so I can't get beyond this step), and 
 nothing is added to the logs beyond the log entries that appeared when I 
 first accessed the CC Licence step :-(

 If I Cancel out from the empty page, and then Save, and then go back in to 
 Edit the record, I can see that the value An error occurred on the license 
 name. has been added to dc.rights, and an empty (bar one line containing 
 result) license_rdf file has been added to the bitstreams . . . .

 HTTPS vs HTTP should not make any difference to this. However, a network
 proxy would -- does your DSpace instance have direct access to the Internet?
 I believe so (we've not had a web proxy here for many years), but I don't 
 work at that level so I'm not 100% sure (but I'm certainly going to double 
 check) - the fact that I do get the page that shows the licence that applies 
 suggests to me that my DSpace is making contact with Creative Commons, but I 
 could be mistaken (is the licence selection logic held in DSpace, or is this 
 retrieved from CC in real time?). Is the behaviour I'm seeing (i.e. that CC 
 Licence selection appears to complete up to the point of clicking Proceed 
 when it hangs) what would happen if a proxy was in play but not configured in 
 DSpace?

 So, I'm still stuck with this - does anyone have this working in v5.2, JSPUI? 
 Did this just work for you after uncommenting the step in 
 item-submission.xml? or did you have to do anything special to get it working?

 Many thanks as ever,

 Mike

 Michael White
 eLearning Developer
 Information Services

 T: (01786) 466877
 E: michael.wh...@stir.ac.uk
 A: S8, Library, University of Stirling, Stirling, FK9 4LA


-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] CC Licence step not completing?

2015-08-10 Thread Andrea Schweer
Hi Mike,

On 11/08/15 01:23, Michael White wrote:
 Running DSpace v5.2 with JSPUI. Configured to run over https (which may, or 
 may not, be behind this issue?).

 I’ve just been having a play with the Creative Commons licence selection step 
 but it doesn’t seem to be working for me so I’m wondering if I’ve done 
 something wrong, or hit a known issue?

 I’ve “switched on” the CC License step by uncommenting it in 
 item-submission.xml.

 The CC licence selection step now appears as expected (in an iFrame), and I 
 can select radio buttons and click Select a Licence - the selection process 
 appears to work as I get a page back that shows the selected licence, but 
 when I click on the proceed link, the page just hangs and I'm not moved on 
 to the next step :-(

Is there anything useful in the dspace log file?

HTTPS vs HTTP should not make any difference to this. However, a network 
proxy would -- does your DSpace instance have direct access to the 
Internet? If not then you'll have to set up the proxy details in 
dspace.cfg 
https://wiki.duraspace.org/display/DSDOC5x/Configuration+Reference#ConfigurationReference-ProxySettings

Perhaps setting this in dspace.cfg isn't enough for Creative Commons 
though, see the most recent comment here: 
https://jira.duraspace.org/browse/DS-2151?focusedCommentId=42205page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-42205

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette