EUDAT-B2SHARE / b2share

B2SHARE software for the EUDAT CDI services.
https://b2share.eudat.eu
GNU General Public License v2.0
35 stars 32 forks source link

EUON records are not visible: not shown in Latest Deposits, no collection associated #174

Closed SarahBA closed 10 years ago

SarahBA commented 10 years ago

The file was deposited but it wasn't display as "Latest Deposit" (https://test-eudatis.csc.fi/record/102), may be it's related to metadata type or...!

emanueldima commented 10 years ago

@SarahBA In the test environment I don't have access to record 102, I get the "The record you are trying to access has just been submitted to the system and needs to be assigned to the proper collections. It is currently restricted for security reasons until the assignment will be fully completed. Please come back later to properly access this record." message. Can you see it? I assume that it's not been processed and therefore is not available in the list of deposits.

emanueldima commented 10 years ago

Did record 102 contain files with weird characters in name?

SarahBA commented 10 years ago

It's a PNG file and seems to be uploaded, I can open it : https://test-eudatis.csc.fi/record/102/files/gldt1110.png No file name has only regular characters : gldt1110.png

emanueldima commented 10 years ago

Nope, I get this:

Authorization failure

The record you are trying to access has just been submitted to the system and needs to be assigned to the proper collections. It is currently restricted for security reasons until the assignment will be fully completed. Please come back later to properly access this record.

SarahBA commented 10 years ago

I try with another account and I also get that error. It seems that only the uploader account can see that file!

emanueldima commented 10 years ago

Please try to make another deposit with the same file, let's see if that will happen again

SarahBA commented 10 years ago

The new one: https://test-eudatis.csc.fi/record/107

emanueldima commented 10 years ago

This one I see perfectly well, and it's also in the list of Latest Deposits. This seems to be a different issue, it's not related to latest deposits.

@SarahBA, did you make that deposit private, maybe?

SarahBA commented 10 years ago

The first time I chose "euon" as domain. Is that make the deposit private?

emanueldima commented 10 years ago

No, I should still see it. I have created 2 new records:

https://test-eudatis.csc.fi/record/109 -- this is default euon record https://test-eudatis.csc.fi/record/110 -- this is private clarin record

I can see them both if I click the links above. At this moment, in the Latest Deposits list only the private one is shown. It might be that euon records are not shown there.

emanueldima commented 10 years ago

On the record page, record 109 shows no collection while record 110 shows "The record appears in these collections: Linguistics". So records in euon do not have an associated collection, which is bad.

emanueldima commented 10 years ago

@SarahBA can you see the records above?

SarahBA commented 10 years ago

https://test-eudatis.csc.fi/record/109 return the same error "The record you are trying to access has just been submitted ...." https://test-eudatis.csc.fi/record/110 The link opens and no file is shown.

emanueldima commented 10 years ago

110 is ok, the content is private and doesn't show (we should add a message to say that, but that's another bug)

109 demonstrates there's a problem with the euon deposits. I think this is the issue. I am modifying the issue description.

emanueldima commented 10 years ago

On my local VM, with the correct settings, it works nicely. It must be a misconfiguration on the test server. I am assigning this to @llehtine, with the request to check the test server configurations for the following:

  1. the /opt/invenio/lib/python/invenio/config.py/CFG_SIMPLESTORE_DOMAINS must be "generic, drihm, linguistics, euon"
  2. in mysql, the "collection" table must have 5 rows, with the names: SimpleStore, Generic, Linguistics, DRIHM, EUON
Kallio commented 10 years ago

check result:

  1. CFG_SIMPLESTORE_DOMAINS = "generic, drihm, linguistics, euon" meanwhile invenio-local.conf has a line: CFG_SIMPLESTORE_DOMAINS = generic, drihm, eudat, ecology, linguistics I believe this somehow reflects to db since :
  2. mysql> select id,name from collection; +----+-------------+ | id | name | +----+-------------+ | 1 | SimpleStore | | 2 | Linguistics | | 3 | Generic | | 4 | EUDAT | | 5 | DRIHM | | 6 | Ecology | +----+-------------+ 6 rows in set (0.00 sec)
emanueldima commented 10 years ago

Thank you for checking, that is indeed old data. The EUON domain is missing. To solve this you should make sure all the values from the invenio-scripts/install/collections.sql are in the right table. I hope the production database has the right values :cold_sweat:

Kallio commented 10 years ago

production database has the right values.

emanueldima commented 10 years ago

@llehtine Lassi, I know the test server has a different configuration. You can close this issue if you make sure that the test server has the following:

  1. the /opt/invenio/lib/python/invenio/config.py/CFG_SIMPLESTORE_DOMAINS must be "generic, drihm, linguistics, euon"
  2. in mysql, the "collection" table must have 5 rows, with the names: SimpleStore, Generic, Linguistics, DRIHM, EUON
llehtine commented 10 years ago

Checked, and they are there. Also, the bbmri is added to the test server configuration.