Genesys PGR issueshttps://gitlab.croptrust.org/groups/genesys-pgr/-/issues2024-01-11T11:08:15+01:00https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1042Crop page crash2024-01-11T11:08:15+01:00Matija ObrezaCrop page crashhttps://sandbox.genesys-pgr.org/c/sorghum https://sandbox.genesys-pgr.org/c/banana crash with "Error: ReferenceError: exports is not defined". Most other crop pages load just fine.
The only difference I found is that these two crops hav...https://sandbox.genesys-pgr.org/c/sorghum https://sandbox.genesys-pgr.org/c/banana crash with "Error: ReferenceError: exports is not defined". Most other crop pages load just fine.
The only difference I found is that these two crops have `..._tree.json` files that display the crop diversity tree.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/ui-embedded/-/issues/77Keep access token between sessions2023-09-14T06:15:49+02:00Matija ObrezaKeep access token between sessionsNew access tokens are now created on every reload of Embedded Genesys. While this works just fine, it's less then ideal. Token should be persisted between user's sessions.
Access token should be stored in `localStorage` when it is avail...New access tokens are now created on every reload of Embedded Genesys. While this works just fine, it's less then ideal. Token should be persisted between user's sessions.
Access token should be stored in `localStorage` when it is available, otherwise fall back to a cookie.
Update `checkAccessToken` in [genesys.tsx](https://gitlab.croptrust.org/genesys-pgr/ui-embedded/-/blob/main/src/genesys.tsx#L32) to use `localStorage` or cookie to load/save the token.
If token is not available or has expired, fetch and save the new token.1.6Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1009Bug in Admin: Users2023-08-18T09:23:57+02:00Matija ObrezaBug in Admin: UsersI can't access Admin > Users on Sandbox. Please check.I can't access Admin > Users on Sandbox. Please check.2023.5Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/981Accessioin images2023-03-24T14:10:43+01:00Matija ObrezaAccessioin imagesI noticed some bugs with images and navigation:
1. https://sandbox.genesys-pgr.org/a/v2OAMdbryGX
2. Click "Images"
3. Observe that the `Card` size changes as soon as the image is loaded. This needs to be fixed.
4. Click "Overview", it d...I noticed some bugs with images and navigation:
1. https://sandbox.genesys-pgr.org/a/v2OAMdbryGX
2. Click "Images"
3. Observe that the `Card` size changes as soon as the image is loaded. This needs to be fixed.
4. Click "Overview", it displays.
5. Click "Images" and observe that console logs that images were loaded, but you're still seeing the Overview.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/980Accession images not loading2023-03-23T13:44:51+01:00Matija ObrezaAccession images not loadingBecause of styling (probably because of `position: absolute`) the `LazyLoadImage` does not properly detect visibility.
![image](/uploads/6494c0ff1684a9ea8653d385525b8332/image.png)
Please fix both https://www.genesys-pgr.org/a/images/v...Because of styling (probably because of `position: absolute`) the `LazyLoadImage` does not properly detect visibility.
![image](/uploads/6494c0ff1684a9ea8653d385525b8332/image.png)
Please fix both https://www.genesys-pgr.org/a/images/v27DXWw11q9 and https://www.genesys-pgr.org/10.18730/P8HA2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/965Bug: Refreshing access token2023-02-23T13:33:34+01:00Matija ObrezaBug: Refreshing access tokenIn the case when refreshing the access token from *refresh* token fails, the web app enters a loop where it keeps trying to call */oauth/token/refresh*. When that fails, it immediately makes a new call.
In the left case, the call failed...In the case when refreshing the access token from *refresh* token fails, the web app enters a loop where it keeps trying to call */oauth/token/refresh*. When that fails, it immediately makes a new call.
In the left case, the call failed because of an invalid HTTP request origin, on the right because I took staging.genesys-pgr.org offline:
![image](/uploads/6b152523878f02e0c68f7ed09bd1a851/image.png) ![image](/uploads/f2926b752721053c660ff0471b15dff6/image.png)
The issue is in how we handle the refreshing using `setTimeout()`. I already pushed some changes to *main*, but this needs behavior to be reviewed.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/959Filtering subsets and datasets by their uuid2023-02-01T20:06:21+01:00Matija ObrezaFiltering subsets and datasets by their uuidAllow users to filter by list of subset/datasets using multiple UUIDs. The relevant components already exist in `AccessionFilter` and need to be applied to `SubsetFilter` and `DatasetFilter`:
![image](/uploads/9d747b8aae32b47ad9a7634b3d...Allow users to filter by list of subset/datasets using multiple UUIDs. The relevant components already exist in `AccessionFilter` and need to be applied to `SubsetFilter` and `DatasetFilter`:
![image](/uploads/9d747b8aae32b47ad9a7634b3d76e090/image.png)2023.1Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/891BUG: Updating routes2022-03-10T13:06:50+01:00Matija ObrezaBUG: Updating routesRouting problem:
1. Open https://www.genesys-pgr.org/a/v2R2rx3E9zA
1. Click "Overview" observe Overview is loaded
1. Click "Accessions" observe accession list is ok
1. Click one of the accessions
1. Open Developer Tools **Network**
1. C...Routing problem:
1. Open https://www.genesys-pgr.org/a/v2R2rx3E9zA
1. Click "Overview" observe Overview is loaded
1. Click "Accessions" observe accession list is ok
1. Click one of the accessions
1. Open Developer Tools **Network**
1. Click "Browse this species at XXXXXX"
1. Observe that list of accessions is shown and pretty filters display the data as expected
1. **Problem:** the URL does not reflect the `filterCode` in the response of the API call!
1. So the link to "Overview" does not have the latest `filterCode` and doesn't show the same pretty filters2022.2Vladyslava MokliakVladyslava Mokliakhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/860Bug: Scrolling My List2021-12-10T18:54:30+01:00Matija ObrezaBug: Scrolling My ListI'm trying to show some 380 accessions in my list. Update your `localStorage` for `myList` with:
```json
{"count":384,"accessions":["1096fd06-4c01-4e20-a789-9b04d83d1743","2837e98f-821b-4570-9325-b9707afcf356","0de18b0b-5498-4d47-a6b1-2...I'm trying to show some 380 accessions in my list. Update your `localStorage` for `myList` with:
```json
{"count":384,"accessions":["1096fd06-4c01-4e20-a789-9b04d83d1743","2837e98f-821b-4570-9325-b9707afcf356","0de18b0b-5498-4d47-a6b1-2b7383db6170","e1345e80-3552-4d84-98a2-db98519248d0","d0b96dee-433e-4859-ba31-012c95aa595b","d22c41f8-ce27-4452-9118-6a50a435ec04","feebf07d-07cb-40b4-b815-bb3353e47cd9","156a281d-9104-4903-8f85-201ee1ae7047","6ff73337-7084-4c93-8d55-1bcc60897873","5bbbb2a9-cbb5-4206-bb1d-d7c5c6eea5a1","252cd768-8f93-4b6a-afbe-8d89fb99c248","1d695b15-8e04-4945-bb04-be8b330fffc1","a056c31b-9abf-4fff-982e-a8c42d1d88a9","1d56931f-39f8-4238-a2e2-2a9bb16d3517","af3d8654-6d96-4254-8eb0-6e2576c1e753","7e7b44a8-a540-4cfb-815f-e86036a04f4c","b882fecc-5095-42b0-8360-51f4348755dc","daf50ca0-2c03-4059-b604-6172acd642d3","2133fd47-460d-4bea-be49-78d2e34f5a6b","d43fd6d0-c4b1-4dfa-a93e-74733e9003b3","f288d3a3-139c-4123-b7c9-e70f8979b670","fe0eb307-8c7d-40a7-ba2f-34935649bf63","814040ed-4056-4c1d-9cc4-642cfdf4701c","b001414f-37c5-4a55-959c-1ca16449a5f3","3f54aff7-0db6-4d88-a9a6-f9effa0506bd","59d43125-849b-472c-888c-427358e561eb","339b212e-99b8-4908-8a07-41f2b3ce033a","6b297b92-7bee-4aa2-b995-b8315af75db5","a3e99a92-fd29-4446-a72f-f9cd2d3fe5c5","4e74c295-181e-4190-8109-755c454a7ef0","e9055ed2-e530-4a18-92ad-27e5c3ed540f","075877f3-19d5-4814-a33e-64dbf5ae72f4","9ba80ce9-296b-4151-9453-d201c8b0031e","043c7326-29a2-46c1-8a9d-29d9e48e7e40","8e5b4f19-1856-4b8b-b159-8452199cf79a","52c7ab0e-02cf-461e-9b13-5ee8d7eedd45","6a243160-949a-415d-87d6-6ad5badf3426","9364bb94-460a-4674-bcb9-83b3e6fb198d","bca65ebf-b397-4ca8-80d0-73f1fa1956fb","88a93227-7256-4480-a474-85da1744cc91","7226055b-957f-458b-b6a7-f43ffd876478","1f96eab5-6319-48e2-b2f5-906fc1b30893","c578e02c-1c1d-42ad-b724-134c3708f0d7","a8e7bc57-ddb5-4524-9d72-c194292f8b5f","15d7024d-9bab-4413-865d-964765f25eb4","944013ca-2241-43bb-adbe-5cc3ec675451","27a00912-8812-4987-adf0-1e9b00788051","56745ca1-1b42-4811-9347-abd78764629f","1d4e857a-38f7-4eba-ab62-d39b58a85614","4f41be84-38df-46c3-915b-bd95bbadc75a","69307f3b-91a1-459a-af23-33ba698345cd","f2ef1280-8e77-41a4-8497-741dd724cbbb","94d1bc85-0cbf-44e1-b8f5-a045e07e23c0","88a28706-97b9-4c86-b12d-61c8bf504042","4d4af7ef-5ff4-4751-a55c-070ef4d2b1a3","53f224e7-f354-4664-be3a-f1a8d80c66c1","6d6fec8d-b6d0-484c-81ce-b03f2862fe3e","d05817fc-f86e-4c06-88e0-94fa9241a372","fbd95ac7-e115-49aa-ae9d-27bec263cd25","1260e187-c47c-4864-a300-0d09b02022b2","f52bce22-b1a3-4241-b779-1d8e634b5cb7","2db1769a-b677-475f-b35b-b4df7426f71f","ef350680-5fed-4a30-940c-b9024c3ed986","c6d850d4-c3ea-4fd0-9049-17f58e0e6eeb","682a2df8-7e56-4f11-a25f-a475f32c567f","56129672-df74-4b77-9571-133b9d610115","df817e4c-0d38-4a67-92f0-8d794d63edf1","bd3a0588-52e3-43ea-8661-753ec57cc9fa","d34c25d4-c8b8-4d66-bb25-bb6af2667a87","fecf8bde-3720-4baf-a60e-61905e3f5c34","fd1ed965-3dde-4be5-bb10-b559f5b4a460","a0b4400e-6d9e-4602-9306-815b99f7f519","66d9c1f1-44d9-4074-9a55-3cb0a8a4a5a7","5fcb8e7b-333d-4b0e-8a11-0bde4726763f","82f13da4-e960-406a-8fc9-3c2e41620998","1e78e5c6-57b6-4395-9ed4-7d95abbadb50","a47b5fea-b8ab-464e-a007-03e0c19d3c7a","e97f9b17-a634-43de-aeb9-317c959e4252","2f55c43c-d393-4c6c-a361-b3d240481e02","6d7d4d71-c952-47be-89ff-2250227bd6b9","e98542fa-67af-496c-b761-c86fd4a08098","8c6c87ee-6786-4851-9765-978356b801ad","688b85cd-a268-47e8-a6f4-87320fcc0335","17e95746-217e-49d1-a73d-71fe15db0a7a","89107fc3-47dd-4c2b-831e-0342ad8d08f5","53ae5ea8-467f-4845-a075-4efce0ef2cea","ef0f6cce-d1fb-43a7-ac10-f22672e17853","bd599024-01a6-4cd9-9f37-fc7846b45697","f2237b42-5fef-4439-b60b-8313e96e34a2","c62d19a0-e120-4f32-8bdf-44b3c53fdcb5","81260ab9-82b3-4f62-b7fd-9443e224c653","259ae8a2-c46b-4455-885f-1cfe8ee94492","9fdcaae6-db01-4a8b-95e8-a16bd48fa089","73abd4f9-c239-4f0e-a762-7be04ea166b2","3c9315c7-a5d1-4243-aa8a-d4675992512b","ab410ada-1a58-4c22-9d87-fc607682ad1d","0101d2d0-a027-423a-b082-e5507ebbb7fb","5419e1cd-5af1-4be1-ab8c-7be3f76e05a6","a4e7753d-3fde-4d0f-be85-10f7dbe3c2ff","26491e1b-3260-413a-ae1a-5852dc8b4bea","c3719757-aa50-43fd-a2e0-9890fb8bf86f","c0e34935-b048-43a2-a8a4-e63ab77f243c","7b040b1f-f66f-48e7-92b9-e974bafc4179","507e3d97-5105-4cb7-8281-d28c1efc37fc","ef6b79f7-4823-438a-a6e1-4ff70dd842e1","7842b0f4-695f-4cd0-8be1-97bc180cc8c9","7745b08b-40f7-4675-81e4-48d63b7b95d5","82044bbc-ec0c-415f-a6c5-d5407feae47a","891f9e7a-410b-4b95-a7ad-c2eebb1d593d","0ec91897-093c-4aff-978a-37bb680e2a1c","916afeb1-5bdf-4923-b876-b31da7e09e76","42a462b9-0341-4aca-87bc-0b26372ec33e","56541a26-f6a6-4799-8a84-6115113b710f","c8f80cc3-32b7-4aa6-b4c8-d9b10596a740","5abc08af-60b2-4fa8-83e1-d83b276d6275","44598a8f-3c31-4699-b1c0-fd57198773af","4583d0fa-4df7-4195-97b9-ab3b37f29f59","1730f748-17ff-48ed-90a7-446ce668e28a","509957e8-2e05-4606-b34a-2f7c5434858f","51a9c1a7-10ad-49ed-9e59-2973f3afb35e","3ec8e318-c19f-4f21-b74a-3f6637f9cb33","62fc2434-3dfe-41db-9c5d-03d29d42d794","d5f9cbd8-2e11-4a55-b865-54ee15207193","68013462-7521-49b4-96d9-76c597d23311","f96e68dc-6a39-469e-9761-ca3cf1e26da0","881c36fa-67c6-42ff-b81f-5626cb854411","eb186358-0353-4e3b-bdbc-dd8b846cdee6","059c9196-e9b2-4c96-9b11-1f30a1d68906","1f9cdeb2-faa9-4c30-a92a-5dbe21521514","f8292692-71a0-4423-89c9-c57c93d9ad5a","dc0ec40a-e3e2-448a-9707-af9d8987443e","64f3a016-7346-433e-a386-d0523cdb89e4","7a93df55-5245-4285-84ae-0959218c734c","8b8d2d7a-859e-4247-9d0d-3627d44ec438","244c969e-008a-42de-a7eb-b6aae672ba8e","54268b0e-cc73-4593-a111-fe51e81f5198","f1201be0-3819-482e-9d0d-ac883d0e762b","3a7b823b-f02f-45e8-833d-b68ac70fca93","74b7bbbf-4485-4f9a-827c-e73900e1e173","4b6ce51a-921c-46ec-bb08-41ff5ae1e899","63b05bb7-3241-469e-b09a-622482d4a684","a590b5bd-190c-4bb1-b432-939d64ccf7e8","4316748e-5ebe-493b-8409-ab56af6eac9d","5cef9836-5b2d-40ca-b0d2-760e0f99f1ae","d02c7eb4-6148-49c3-a619-eb573b65a177","7ea0d6db-77ca-4135-b7fc-5991d3efb116","6bcaf842-1dd2-43bb-9ce9-c523bfa2eab5","d9078876-57b0-477f-a0e8-9cfb61a94a75","8110ef49-7255-421b-897f-f57ffe8c151e","c7f8b373-3950-418f-acfe-1f2842a81049","eb934a58-7aa8-4e11-bfb3-20c713b12c48","7c965c34-d2ad-47cc-9708-11afb84763d3","aa22402a-9196-487c-9e57-c145ab3e6c48","e2286056-1f2f-457b-a37e-bdf018007cf5","57fac14b-1d09-4e23-bf24-ded563e0f800","900ec747-18d0-4443-b45c-4e49e3d1068f","ace84a92-90a9-40f6-a854-ebac483eb249","536dc40f-1bea-476d-bc89-3cc7087e345c","b6822048-3c02-4ca5-8d61-c4b7f219e3e4","20e6247e-aa2b-4101-8569-b6b9b2822cef","dc8425fe-0ee2-4c78-a0f8-c564ecf34075","cb973495-697a-4fea-bd9d-245a90d0e546","afcf801b-403e-40b9-a71a-351e9e12ff7a","b640143a-cbdf-4674-b05b-fdb907c2a880","7b282c0f-b9a7-44b8-a666-3c83c8575921","8898e42c-974f-49d4-abfa-9b05c5255bcd","04c4fe05-2b61-42d6-9382-c389f759589d","8ea6bc31-dd74-4938-b964-0d649e0b28a8","bd707143-eacb-47d4-9fe1-f8be85885425","0ac3795f-d421-4a8d-8a6a-bfefffd06c63","7c0e41b8-6182-4203-9eb3-b0a94f5256ef","57bd6c76-83f2-4cea-9a08-a8ece62a7e86","271c926d-95eb-4a6a-9df9-44b61e7513c3","2ecb89a4-fa28-41ab-9da7-c0b8d0a510cf","71bf4a69-5316-492b-ae99-442304b3b7d3","40cf1abb-329f-4bf5-9772-67a0bde4b14a","70a6b330-1a41-4347-b1c5-cc0eb2a1b2b8","65602f68-91b6-4f42-8204-8b6bfa251f4c","f4d13d7d-f05d-44eb-912e-7f6fb37c3a91","34f5747b-0399-4dc5-95d8-9a45951d6f88","af0628ec-f02e-4dda-86ce-b613d5f46902","60d157a0-03c2-4c68-b844-55b0545a538b","4a7d00d3-cd49-4cff-8a29-105cd850a72f","9fbbe9cb-4851-4fbc-b843-dfcda90e15c7","13c4d0ed-2a58-4307-aca2-aa041e8c7c89","69e8b783-5f74-4cba-b544-d37c5b105c6b","b82d92dc-c03d-42b0-bc32-5871612dae0c","ef96fdfc-571e-42d1-8f1f-1b7275d455a5","a9a79bab-9483-4473-b730-9e021221df00","c4277a5d-8979-4e4b-87b2-35a8f83390df","64c8d1c9-34bf-475a-aa11-dbdf55459f3c","e1e3dd9c-d086-4e87-a443-375cd9da32e5","e7626530-c311-4daf-823f-b8d0cfc280e7","79379b0c-857f-4b9a-8011-23c3530714e2","4d2a6804-aab7-4925-8ce1-8932c2a1eed1","04401b9e-fe53-497b-9385-3239e42f178e","aa083675-f48a-4782-9bd5-3fd1e39a422b","ad66ab08-861f-4f68-b824-d65a22203267","e7771bf9-a491-43f5-8e70-9f738892e0ca","297c044e-c63d-46de-bfba-3e926346a48d","b634a4a7-fa49-4c8c-82f7-d8a2b5178820","0dece2a4-b620-4dc1-a4e3-4702e24b3581","1662820b-961f-4128-a77f-10f037b71d88","4c89fc5f-caca-497a-a935-c34c6ed3fb35","bbe65778-2dc0-4ebd-9ebe-385ea98561d6","4fad2435-cbd6-4732-91b5-7dfad2e17066","17a06bf7-9e4c-4d6e-a957-4dd98a864c32","893dfd31-daa8-4036-9292-7e584c4e67df","3f0af02f-fa38-4df1-b767-3c0f1911223c","c6afe881-fbca-4aba-abb0-ca29df0c1278","1b019254-3668-486a-a15f-fee84ec8b352","b2a71f06-672d-4f8b-bd35-7878466d00bf","7bbd9ad7-3a83-4573-9500-9dc3e421c471","7b323071-3188-42a3-a032-ea9565b1aa45","66b04f42-4bc4-4bcc-9ee9-c788a116ab88","5dd90726-7788-4b01-8d50-0fe129b53aab","89fa17bc-51b7-4900-8985-30d185caf8e5","ca5e6bf4-3086-4ef0-9ed2-789ce0890088","ca90bd71-3b6e-451e-acd2-8349405344a0","b034053c-7c81-44a2-b776-9f0d3759177c","9addc058-2c7b-42c9-8233-8a2e9bffc338","7f92f4fd-a3fc-4bd3-b1fc-605aee89303a","c6e8e192-88a2-48a3-93b9-6dece646ecae","0793f327-30a0-429b-85fc-693c5fe22db3","32f472c3-da43-41d7-8813-428b9dd8be28","70ed8fd8-6271-46d7-aed3-d6abdf29860c","8ce89812-e24a-4b9b-b62f-6b3abc9c5912","f0fc0577-661b-49ed-a784-2046136294a6","dbec24ed-1e1e-4219-b553-9dad6aa3b78b","873e3c0d-a280-4bfe-b3c1-33f5af6e7540","7aca2391-fc80-4072-9092-862f949ec14f","5d8f4930-dcaa-4446-987b-ccd36c85f7f2","9fb585c8-2156-4524-b07f-01a80348bda1","dadc7c68-4e66-4813-a746-37e18bc7808a","8a66bdf5-87b5-44d1-834b-f19780b47c90","e9312763-5a29-4c06-bbdb-c7768572680a","2f367e5a-1a94-4aea-978e-c961d007a8ef","2ded0c9f-5754-470f-9daa-f7d1f00731d6","6b5f2f8c-f873-4640-b58f-1655bb71a974","e4d1594a-e967-4dce-8b0f-772f7f6a76f9","9fd8ec23-0236-43be-9622-19ce63c617b8","31f71d28-4a5e-4ee3-bed9-fe6f8e1cf99e","fbabc74e-bce0-4a7b-afd7-2edf856dd76e","e84b6e80-78fc-41b8-98fb-357eefceb5f7","e7d11cc6-eb27-407e-8b2a-2d0c10affe8a","e33cb553-9116-49f7-a9ab-a92a2272e8f7","3550968f-1ab3-4834-8b71-fdcaa89f08f6","49bd27f0-1065-4499-8294-83f4a782987a","7c235582-4e00-4679-8056-4438d360bac3","6a4f98d5-b34d-4207-a44f-d928946868c6","713302b9-f12a-4d12-9405-b5c5c0c71ce5","39ae74d4-cb6c-410a-8bc6-f212145907ff","e98d4f2c-e3a8-49e4-a68d-616bd7a90ccc","a60b387b-1803-4369-a4b1-e7c9bd57e1c2","84624561-f0d0-40de-a93e-07b52e080607","ab090801-d7a4-4e5c-9027-7206157bcf34","d0538d75-d4e4-46cb-90ae-1d10f8c6ff3f","fa056112-d6cf-4d5a-a6a2-c4fea3388013","c6495a60-5a85-4c67-96b2-808ad9c46532","96b05801-1331-4034-94aa-056aee4a4d59","c6794226-9145-4105-ad03-5b8832d0076b","e960cbe9-2353-4ff6-b96c-04e92083642a","f5c2b212-0689-4c38-9f9c-590d7508a946","d8021959-705b-4a54-b1b4-b2368c01d11e","65265573-129e-4865-8ec4-a728be72400c","099e185d-f875-4d6b-ba18-34f9471849c8","45a904cc-4443-474f-bb57-f3fd8cf5fc66","5f912c51-251c-49c2-a084-0aa9835d1906","20dc2dec-ed8a-4949-afa7-dfa87ce8b89e","dd3d174a-6b78-46dc-b7fe-51fbfc47ce26","bd35b43e-4bf8-4c53-b0ec-621056d07c7c","b09fb7e2-dbc4-48f1-8e33-ef1ec1b6beac","bd5822c6-3172-4459-84ec-e41fe21626ac","f9303e6c-0920-49be-b302-b3aa4f9d7c0a","fa51ff07-e660-4626-84c7-9c360f05630e","817c1a01-e406-4482-92d8-697e5661ce19","6d1ac566-8bce-48c9-b304-00addc4590f5","f1f4e3a7-36f4-49c6-8169-751d90df2366","bc55c8da-05e1-4bc1-971f-5a9c87a81208","31b1ae92-dee9-4c56-9aa3-a2c3165a3bf7","caa97d9a-7e18-4587-b510-04bbd4070dd1","8e0f3a06-ce4d-4c59-b1b7-8a13d01c2802","8d58abb5-14f6-4444-97c0-333e1bfae122","083898fc-dcd4-466e-b55e-19e3208881e9","53bcb4b6-beb9-4063-8833-9e82e4d9bac4","4740f1d0-3c2b-4e36-a5bf-a2e073ac110d","18f2f790-1c4a-4105-9f07-42a7cef2195f","af23544a-5218-47a9-8ed8-8cfe59536692","6307099e-6ae2-4d08-9c90-e8e1334935f3","2376dd34-a6d2-4195-986f-faedbd748daa","3fdd494c-278a-427c-a9d8-fd19e305cdb3","1115c3af-bd53-4dcf-ab87-72dcdd78fa59","6e6006c5-b2f3-4ddd-96dd-de76f715caec","17d7e26f-2055-48ec-8790-cefba7ff37d0","f2e9af9f-43f3-43d9-955c-57f1d11c4bef","0100a70e-8aa8-4836-8483-edfe0f6e1c59","c8d643ac-1c8e-43b1-ae52-bcb2b0fc3a44","50077ff7-54e8-47ec-b594-b5ebfcd28638","0caeab8a-bc4c-478e-acdf-17e16a514198","43073c85-de95-407f-9042-76f3f3354f19","6ba48848-f505-47ff-84b7-b4eccd38fa54","d5269a62-23a7-4dbf-bea0-976f878d8a4f","9987a9b8-3d61-4c22-87a1-54e8a588d9a5","8068ba2a-9e28-4e89-be22-58be6699543c","6dac0c36-740f-45c4-b2d8-c3d8c28694a9","c1594965-7291-48da-be09-f80c161af6c7","4f9abc5c-5136-43a1-83e0-8af41421ad84","ca933b67-6a11-4411-8690-35409df050c8","1a5a4f7b-f529-41fe-a879-4efa042eec24","7c96237e-9be5-4c05-bd06-8b84b6a6d2bc","cad06063-42e9-47b3-93fa-a9ed11427767","7e1a5add-1398-4baf-bcd0-94b7281758dc","02be7225-1e0c-4a2f-afeb-618a2829d272","b0afc418-7dc9-464e-a1e1-26126df080ee","b72c8331-3506-409d-8982-b949cf4fd490","d6f45d75-ce77-4208-b581-62e9512b356a","894a6ef5-7bc3-48d8-b417-1f50c368fde2","466f1f7c-5129-4c49-9f63-11cfb02ce4d1","d10036ea-91ae-489b-aea3-6227c0b4ab1f","ce3e6131-b4ab-438c-9261-9c0af2696d2e","4c933363-ea33-4fbf-9044-a6ffcd9db348","ad6dcfbd-9c09-443a-94b1-05519e10472c","4ff77a77-9938-44f1-82ec-1e6b0fcbd9db","b6463803-c7cd-4cc3-8b34-e19ab9072858","fdea7528-40b1-4c41-a1b2-d84fa39c8ea2","8124a28a-535c-4cb7-aa07-4630035e03e3","9d35337e-9b69-4ab4-ac74-1ab4e311d622","e0ab70f8-22a5-438a-b0c4-0a59f437eb4e","e4012515-03fe-4aca-8868-3c8dd5965011","f756a3a2-029d-49fa-b126-2be1a318f99c","f9546ff6-1714-444d-a302-8fa0bbaae04e","c3bf2dd9-a295-4f5c-beb5-a0b619f9c613","dcbf7065-9fdd-42dd-a0c6-6590d58b2188","1091c1df-3bb5-417f-81e3-3841448d2b58","659639ae-9a17-4b49-bfdd-a8c2d865a72f","e710d842-e1b5-4857-9da0-0f36da0aff6d","4c3375af-1121-4752-91dd-55404bcc5f06","48d0f927-8721-4225-b54c-5826eeea9460","fe05297e-aae5-4649-9e79-1567fb07641c","f3d41446-3508-447f-bdd8-ed38c0a999e8","ceecc8af-63ff-41de-b89f-dc58b35686be","81f13f26-3755-4209-9144-75390ba31bc1","2ee9643d-b8b8-4ced-8072-eb3ec5bd0bd5","d081935b-beaf-4d00-98f8-59d203ef7127","7f032fa9-150e-4b8f-9159-16ff2beaf069","bf307e43-775a-4332-8d62-cf57707f1f50","e6ce20f1-202c-4ade-bc40-33e448870040","67bfea14-4ea5-48ef-9d9d-f204e453fb48","f109ae7a-85c1-464f-a9b2-f49d35dda8b7","c92c27c7-8818-407e-95c4-2453cdfbbb13","ef8863cb-f6f9-4986-ad13-78b89188e1f5","2fdc0f88-bff8-45ee-8b43-6f9e572d31b0","4c62626e-b56f-43bd-9b66-f54a4582b308","b12fd6d7-e372-48f2-8021-2f1e7834670d","e88d754b-d774-4aee-99ab-8e3fab79c394","68a99c70-89b8-4481-8bab-71c2468917d8","15484b20-5dc8-40e6-9b9b-faadbfc92b7c","43c44b55-cff8-48b1-854e-bd00677b1081","e070f2a9-94db-4d31-9144-32e6aa654950","45b5e973-2ae3-472b-b304-32257b785295","a40d8fea-18d4-4fff-aac1-b4ca50b6973d","17dca846-7319-43cc-a7ad-0241080ea276","a35444a1-1391-4607-b3d8-27e100448e3c","16e56bb4-5a8b-4671-a10a-beee99b350e7","581f6f25-6f36-4812-915f-b36594afb705","4611d045-d39d-4d1c-b2d9-a1730e2777ed","1cdfab66-f963-4bd0-88a9-867a10ba384d","ac4872da-5a43-44eb-99a9-e8d5d2044b63","4c6ed8f1-3d0b-48a6-a01c-c20e62984929","a175fc78-d911-499e-b95e-403cdd8f54ab","7480fda4-65b5-4e40-90e7-d9862ded5a38","cd908040-92f6-41c2-a870-6bdd326815ca","0a1f5538-f4f4-447a-bc94-c0c8afa7926d","29a1d9cb-5edb-41cf-b6d8-cb4f1ff9a349","a63792a6-839a-41d2-be3b-b54444376c4e","0179c245-218f-47af-bacc-663b7e74dd77","ee0b4328-712c-43c8-9786-070b623bef0a","2c4c0378-92ce-4944-8959-8d1c82a4f4df","ba8f3835-73af-4a84-8291-75cc96719904","3b2b48e5-eae2-4db7-be70-77d288fd125e","96400f5f-a815-4991-be11-bafdb352df89","ac6a6198-5d9d-48e7-8a4e-71c89505f526","bee3e4f4-71f1-414e-bec2-cad8224fd5ab","8cb14a90-6a82-4755-bca4-b82ea2c72d80"]}
```
Then refresh the page and scroll to the bottom. It works well until 250, but then resets back to 50.2022.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/857UI: Fixes2021-12-08T17:08:59+01:00Matija ObrezaUI: FixesThis is to record the issues with the most recent UI updates and fix them in one MR.
# `ActivityPost` card
The date and "read more" are not in the same place:
![image](/uploads/73990c9ab0e63ca1fe93bd8de00fd02c/image.png)
- Card date ...This is to record the issues with the most recent UI updates and fix them in one MR.
# `ActivityPost` card
The date and "read more" are not in the same place:
![image](/uploads/73990c9ab0e63ca1fe93bd8de00fd02c/image.png)
- Card date + "Read more..." link need to be stuck to the bottom. Probably `flex-layout: row` will work.
![image](/uploads/5d01a0aded3ada45e67a3f59d0bc82a7/image.png)
- The fix above will probably fix the issue in smaller cards.
# All posts navigation
https://sandbox.genesys-pgr.org/content/news
![image](/uploads/5b15fd2cff015583b128a6d6eb18c6eb/image.png)
- `maxWidth: 1140px` should address the alignment of this text with the cards on the page.
# Entry page
I think the font size is too small in the search box:
![image](/uploads/4fe53cef81321824b9becfb2fbb9cbdc/image.png)
- increase `fontSize`
- Make sure the "down arrow" is nicely aligned with the text baseline ![image](/uploads/73542c338320d0056eaec274e7b55282/image.png)
Then the numbers:
![image](/uploads/e95db1e7f858709620d9beb740ec1766/image.png)
- slightly reduce the `fontSize` of the number
- slightly increase the `fontSize` of the link
Then:
![image](/uploads/0e53ea1c12846ade5303092905de94a9/image.png)
- The `fontSize` needs to be a bit bigger.
And finally:
![image](/uploads/a62535de5c7472aae937e847dbdd4c27/image.png)
These should not be blue (even if they are links), they should stick to the normal text color.
# Crop list `/c` page
https://sandbox.genesys-pgr.org/c
- Limit `maxWidth: 1140px` to both the header and crop cards.
Maybe we need a `Layout` that enforces this `maxWidth` and we can apply it to entry page, crops page and activity post browse page?2022.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/771Configurable token cookie name2020-12-01T11:54:13+01:00Matija ObrezaConfigurable token cookie nameWe now use cookie with name `access_token` in SSR and on the client and we assume that the cookie contains relevant values.
Between sandbox and production (and how the cookie `domain` is set), it is not possible to differentiate between...We now use cookie with name `access_token` in SSR and on the client and we assume that the cookie contains relevant values.
Between sandbox and production (and how the cookie `domain` is set), it is not possible to differentiate between cookies for one and the other. This is also problematic when switching to newer versions where old cookies need to be ignored.
Please extract the access token cookie name to a constant and update code that refers to `access_token` as cookie name to use this new constant.1.0Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/770Bug: Cannot Edit institute2020-11-30T08:48:52+01:00Matija ObrezaBug: Cannot Edit institutehttps://sandbox.genesys-pgr.org/wiews/PHL001 does not show me the "Edit" button even when I am logged in as Admin.https://sandbox.genesys-pgr.org/wiews/PHL001 does not show me the "Edit" button even when I am logged in as Admin.1.0Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/761User can`t log in with email/pass;2020-10-23T14:43:29+02:00Kiril MorhalenkoUser can`t log in with email/pass;**Steps:**
1. Open home page;
2. Open login dropdown;
3. Enter valid credentials;
4. Click "Login" button;
**Expected result:**
User is logged in;
**Actual result:**
"Cannot read property 'data' of undefined" error message is shown;
!...**Steps:**
1. Open home page;
2. Open login dropdown;
3. Enter valid credentials;
4. Click "Login" button;
**Expected result:**
User is logged in;
**Actual result:**
"Cannot read property 'data' of undefined" error message is shown;
![image](/uploads/45460779fd248636f5e87f429d9808f4/image.png)Anastasiia KarasAnastasiia Karashttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/754Bug: Request for material2020-10-12T09:41:27+02:00Matija ObrezaBug: Request for materialAnonymous users cannot finalize their request for material, nothing is reported and nothing happens when you click "Submit":
![image](/uploads/ca7dfd37981c38856509f8c3cdf8a4d5/image.png)
# Captcha?
Notice there is no Captcha displayed.
Anonymous users cannot finalize their request for material, nothing is reported and nothing happens when you click "Submit":
![image](/uploads/ca7dfd37981c38856509f8c3cdf8a4d5/image.png)
# Captcha?
Notice there is no Captcha displayed.
1.0Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/749Passport data download limit2020-09-29T14:24:25+02:00Matija ObrezaPassport data download limit@pgiovannini would like to download all *Oryza* and all *Hordeum* passport data. They both have more than 200,000 entries.
Please update the download limit of passport data to 300,000 records.
API may need adjustment.@pgiovannini would like to download all *Oryza* and all *Hordeum* passport data. They both have more than 200,000 entries.
Please update the download limit of passport data to 300,000 records.
API may need adjustment.1.0Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/535Tiles not generated when using full-text search2020-08-24T10:19:08+02:00Matija ObrezaTiles not generated when using full-text searchhttps://www.genesys-pgr.org/a/map/v2k2xPEB6Be uses a full-text filter and all requests for tiles fail with:
```
Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]
```
Tile example: https://cdn.gen...https://www.genesys-pgr.org/a/map/v2k2xPEB6Be uses a full-text filter and all requests for tiles fail with:
```
Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]
```
Tile example: https://cdn.genesys-pgr.org/acn/tile/4/4/5?f=v2k2xPEB6Be2.5Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/475NPE in OAuth approval2019-10-09T10:34:07+02:00Matija ObrezaNPE in OAuth approvalSince the recent upgrade of libraries, accessing https://api.genesys-pgr.org/oauth/authorize?response_type=code&client_id=fTxcm.TrySiiiOLncyeWfmQKyp%40www.genesys-pgr.org&redirect_uri=oob&scope=write fails with:
```
javax.servlet.Servle...Since the recent upgrade of libraries, accessing https://api.genesys-pgr.org/oauth/authorize?response_type=code&client_id=fTxcm.TrySiiiOLncyeWfmQKyp%40www.genesys-pgr.org&redirect_uri=oob&scope=write fails with:
```
javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:168)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:505)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:169)
at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
at org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
at org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.genesys2.server.servlet.filter.LocaleURLFilter.doFilter(LocaleURLFilter.java:179)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:296)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.genesys2.server.servlet.filter.SuppressRequestRejectedExceptionFilter.doFilter(SuppressRequestRejectedExceptionFilter.java:40)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)
... 15 more
Caused by: java.lang.NullPointerException
at org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver.hostMatches(DefaultRedirectResolver.java:194)
at org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver.redirectMatches(DefaultRedirectResolver.java:126)
at org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver.obtainMatchingRedirect(DefaultRedirectResolver.java:213)
at org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver.resolveRedirect(DefaultRedirectResolver.java:92)
at org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize(AuthorizationEndpoint.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:854)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:765)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
... 100 more
```2.5Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/392Filters aren`t applied on the "Image" tab2019-07-05T10:14:13+02:00Kiril MorhalenkoFilters aren`t applied on the "Image" tab**Steps to reproduce:**
1. Go to "https://sandbox.genesys-pgr.org/a/images".
2. Click on any "Suggested filters" (e.x. "SYR002" in "Institute code" filter).
3. Click "x" button on chosen filter.
4. Click "Reset" button.
5. Try to apply a...**Steps to reproduce:**
1. Go to "https://sandbox.genesys-pgr.org/a/images".
2. Click on any "Suggested filters" (e.x. "SYR002" in "Institute code" filter).
3. Click "x" button on chosen filter.
4. Click "Reset" button.
5. Try to apply any filter.
**Expected result:**
Filter is applied.
**Actual result:**
User can`t apply any filter
It work only on this tab.![filters_are_not_applied_on_the_image_page_after_reset](/uploads/aec3bf185eee9bedcd781f5ab9c9a40f/filters_are_not_applied_on_the_image_page_after_reset.gif)Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/390ClickAwayListener problems2019-06-20T15:04:11+02:00Matija ObrezaClickAwayListener problemsNavigate to https://sandbox.genesys-pgr.org/datasets/overview apply any filter.
Every action on the page results in:
```
vendors.654a4362ab5c142937fe.js:1 Uncaught Invariant Violation: Minified React error #185; visit https://reactjs.o...Navigate to https://sandbox.genesys-pgr.org/datasets/overview apply any filter.
Every action on the page results in:
```
vendors.654a4362ab5c142937fe.js:1 Uncaught Invariant Violation: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at e.exports (https://sandbox.genesys-pgr.org/vendors.654a4362ab5c142937fe.js:1:714929)
at d (https://sandbox.genesys-pgr.org/vendors.654a4362ab5c142937fe.js:1:1286843)
at ga (https://sandbox.genesys-pgr.org/vendors.654a4362ab5c142937fe.js:1:1365433)
at Object.enqueueSetState (https://sandbox.genesys-pgr.org/vendors.654a4362ab5c142937fe.js:1:1340993)
at n._.setState (https://sandbox.genesys-pgr.org/vendors.654a4362ab5c142937fe.js:1:1282569)
at https://sandbox.genesys-pgr.org/vendors.654a4362ab5c142937fe.js:1:660381
```
This makes the page unresponsive.
The reason is the `ClickAwayListener` in `PrettyFilters` calls to `setState`.0.1Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/312Bug: Accessions Overview SSR2019-05-20T19:45:41+02:00Matija ObrezaBug: Accessions Overview SSRSSR with filter code applied uses a very strange API URL that does not exist **/api/v1/acn/v18461d86381494a49a0faaa913f74c3da** (`/overview/` part is missing:
Opening beta.genesys-pgr.org/a/v18461d86381494a49a0faaa913f74c3da logs:
```
...SSR with filter code applied uses a very strange API URL that does not exist **/api/v1/acn/v18461d86381494a49a0faaa913f74c3da** (`/overview/` part is missing:
Opening beta.genesys-pgr.org/a/v18461d86381494a49a0faaa913f74c3da logs:
```
Incoming request, url: /a/v18461d86381494a49a0faaa913f74c3da
Backend API request to /api/v1/acn/v18461d86381494a49a0faaa913f74c3da
Incoming request, url: /proxy/api/v1/acn/v18461d86381494a49a0faaa913f74c3da
Will HTTP Proxy filter? true
HTTP proxy to https://api.genesys-pgr.org/api/v1/acn/v18461d86381494a49a0faaa913f74c3da
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: Request failed with status code 404
at createError (/var/www/genesys-ui/server/server.js:1:432189)
at settle (/var/www/genesys-ui/server/server.js:1:434620)
at IncomingMessage.handleStreamEnd (/var/www/genesys-ui/server/server.js:1:423088)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at args.(anonymous function) (/usr/local/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
Server info fetched in 83ms
```
My guess is that the bug is caused in `server.ts` in the redirect to DOI and it uses a regexp pattern that is way too broad:
```
:lang(/[a-z]{2})?/a/:uuid([a-z\\-0-9]+)
```
The pattern for `uuid` must be better, maybe:
```
// 79480324-a570-494c-a33e-524ab1b91755
.{8}(\\-.{4}){3}\\-.{12}
```
React routes still work properly, because routes using `filterCode` match before the route with `uuid`.
## Update
It's much worse, this bug affects any URL starting with `/a/`.0.1Andrey GarnitskiyAndrey Garnitskiy