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

use "root" as default alias, handle page=0 #5907 #5913

Closed
wants to merge 1 commit into from

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented Jun 4, 2019

Related to #5907, an alternative to pull request #5908.

This pull request feels like progress in getting Dataverse to work properly on Payara 5 in the sense that there is no validation error when you visit the homepage and after logging in as dataverseAdmin, one does not see an Internal Server Error. However, the "Create Dataverse" button doesn't work. The page flashes and you land on http://ec2-34-207-192-222.compute-1.amazonaws.com:8080/dataverse.xhtml?ownerId=1 (for example) but you are not redirected to the "create dataverse" page.

@scolapasta scolapasta self-assigned this Jun 5, 2019
@@ -307,6 +307,10 @@ public void search(boolean onlyDataRelatedToMe) {
String allTypesFilterQuery = SearchFields.TYPE + ":(dataverses OR datasets OR files)";
filterQueriesFinalAllTypes.add(allTypesFilterQuery);

if (page == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pdurbin the log message makes me think we don't know why this is here? Can we find out if this is needed and why? I'd rather be sure of why we're adding in logic than just logging a ¯_(ツ)_/¯

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scolapasta yes, the message could be better. It is needed (or something like it) to avoid a 500 error like this:

58897303-ffcfd280-86c5-11e9-8e6e-4c5cd174ccb6

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey guys, I just created bd25409, which is likely to eliminate the root cause.

@pdurbin I had no chance to test this yet, would you be so kind?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@poikilotherm I just tested your fix in bd25409 but by cherry-picking it into e4946bc but I'm still getting the same 500 error and java.lang.IllegalArgumentException: paginationStart must be 0 or greater at edu.harvard.iq.dataverse.search.SearchServiceBean.search(SearchServiceBean.java:148) in the logs. Here are some screenshots:

Screen Shot 2019-06-11 at 2 13 14 PM

Screen Shot 2019-06-11 at 2 13 10 PM

@pdurbin
Copy link
Member Author

pdurbin commented Jun 11, 2019

@scolapasta 00fb3d0 has two fixes in one commit which was probably misguided of me. I just created pull request #5933 as a smaller chunk.

@pdurbin
Copy link
Member Author

pdurbin commented Jun 12, 2019

@scolapasta 00fb3d0 has two fixes in one commit which was probably misguided of me. I just created pull request #5933 as a smaller chunk.

I'm closing this pull request in favor of pull request #5933.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants