Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when accessing harvested items via oai-pmh #768

Open
vidiecan opened this issue Jun 13, 2017 · 0 comments
Open

NPE when accessing harvested items via oai-pmh #768

vidiecan opened this issue Jun 13, 2017 · 0 comments
Assignees
Labels
bug cleanup obsolete, related to xmlui, old rest, etc. high priority jm-high
Milestone

Comments

@vidiecan
Copy link

  • create collection
  • harvest an endpoint
  • go to item view of a harvested item
java.lang.NullPointerException
	at org.dspace.content.Item.canEditMetadata(Item.java:1891)
	at org.dspace.app.xmlui.aspect.eperson.Navigation.addOptions(Navigation.java:266)
	at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:228)
	at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	
@kosarko kosarko modified the milestone: Backlog Sep 7, 2017
@kosarko kosarko added the cleanup obsolete, related to xmlui, old rest, etc. label Aug 27, 2024
kosarko pushed a commit that referenced this issue Nov 21, 2024
* Added solr index `handle_title_ac` and `_comp` for the Item

* Added support for searching results from specific solr indexes.

1. Updated submission-forms autocomplete definition to specify a specific index. 2. Updated configuration is provided via REST API. 3. Create a new `/suggestions` endpoint for searching values from custom solr index - it returns VocabularyEntry page.

* Supported searching Item byHandle when passed a handle as parameter without handle canonical prefix.

* Added autocompleteCustom `solr-subject_ac` and `handle_title_ac`.

* Added autocompleteCustom `solr-publisher_ac`.

* Added cfg property to define a separator from the solr value to get only display value.

* Added autocompleteCustom `solr-dataProvider_ac`

* Refactored code and created integration test for the SuggestionRestController

* Updated suggestion integration tests because it has had a conflict with another IT

* Added doc and changed `autocomplete.custom.format` to `autocomplete.custom.separator` for proper naming.

* Added support for loading suggestions from the json file - need to refactor.

* Refactored and added docs.

* Created tests and fixed failing ones due to updated solr definition

* Synchronized submission-forms_cs.xml with the original-english one

* Added docs about magic constants

* Added doc why the handle is updated to canonical form in the searchbyHandle endpoint

* Allow searching only within the solr indexes or JSON files permitted by the configuration.

* Removed normalization of handle prefix because there could be more prefixes. Expect only handle value.

* Fixed if condition and config property default value.

* Fixed integration tests. Allowed autocomplete custom was missing in the test cfg.

* The suggestion endpoint is allowed only for authorized users

* Refactored method for the normalizing the query for the discoverQuery and added unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cleanup obsolete, related to xmlui, old rest, etc. high priority jm-high
Projects
None yet
Development

No branches or pull requests

2 participants