[GitHub] [airavata-custos] machristie opened a new issue, #382: findUsers isn't returning results when called with super tenant credentials for a child tenant

2023-05-02 Thread via GitHub


machristie opened a new issue, #382:
URL: https://github.com/apache/airavata-custos/issues/382

   I created a super tenant and a child tenant. In the child tenant I created a 
user with username "demouser".  I then tried to search for the "demouser" in 
the child tenant but using the super tenant credential. This is to support a 
Data Catalog use case (see 
https://github.com/apache/airavata-data-catalog/issues/12): Data Catalog will 
have a Custos super tenant credential and will use that to resolve users, 
groups, etc. in child tenants.
   
   Here's the code I used:
   
   ```java
   // Super tenant
   String clientId = "custos-s8qf9g3odbbcdsgd2khv-1000";
   String clientSec = "REDACTED";
   String childClientId = "custos-e6vgzgskcr0pewrejma3-1002";
   // String clientId = "custos-e6vgzgskcr0pewrejma3-1002";
   // String clientSec = "REDACTED";
   CustosClientProvider custosClientProvider = new 
CustosClientProvider.Builder().setServerHost("localhost")
   .setServerPort(7000)
   .setClientId(clientId) // client Id generated from above 
step or any active tenant id
   .setClientSec(clientSec)
   .usePlainText(true) // Don't use this in production setup
   .build();
   UserManagementClient userManagementClient = 
custosClientProvider.getUserManagementClient();
   // userManagementClient.registerUser("demoUser", "Demo", "User", 
"testpassword",
   // "demou...@gmail.com", false);
   // userManagementClient.enableUser("demoUser");
   // FindUsersResponse findUsersResponse =
   // userManagementClient.findUser("demouser", null, null, null, 0, 1);
   FindUsersResponse findUsersResponse = 
userManagementClient.findUser(childClientId, "demouser", null, null, null,
   0, 1);
   System.out.println("findUsersResponse=" + findUsersResponse);
   ```
   
   The above works if I search for the user with the child tenant credentials, 
but not when I use the super tenant credentials.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@airavata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [airavata-custos] machristie opened a new issue, #381: Keycloak images fail to run on Apple Silicon (m1)

2023-05-02 Thread via GitHub


machristie opened a new issue, #381:
URL: https://github.com/apache/airavata-custos/issues/381

   For the version of Keycloak images that Custos uses, there are no native arm 
images. I ran into the following error when Keycloak image runs in the x86 
emulator:
   
   ```
   containers-keycloak-1  | 20:25:27,304 ERROR [org.jgroups.protocols.UDP] 
(ServerService Thread Pool -- 60) failed setting interface to /172.20.0.3: 
java.net.SocketException: Protocol not available (Error setting socket option)
   containers-keycloak-1  | 20:25:27,306 ERROR [org.jgroups.protocols.UDP] 
(ServerService Thread Pool -- 60) failed setting interface to /172.20.0.3: 
java.net.SocketException: Protocol not available (Error setting socket option)
   containers-keycloak-1  | 20:25:27,309 ERROR [org.jboss.msc.service.fail] 
(ServerService Thread Pool -- 60) MSC01: Failed to start service 
org.wildfly.clustering.jgroups.channel.ee: org.jboss.msc.service.StartException 
in service org.wildfly.clustering.jgroups.channel.ee: 
java.lang.IllegalStateException: java.net.SocketException: Protocol not 
available
   ```
   
   Turns out this is a known issue. I found this helpful comment: 
https://github.com/docker/for-mac/issues/5310#issuecomment-877653653
   
   I adapted this into a little shell script to build local, native Keycloak 
images
   
   ```bash
   #/bin/bash
   
   # based on 
https://github.com/docker/for-mac/issues/5310#issuecomment-877653653
   
   # VERSION=14.0.0 # set version here
   VERSION=9.0.2 # set version here
   
   TEMP_DIR=$( mktemp -d )
   cd $TEMP_DIR
   git clone https://github.com/keycloak/keycloak-containers
   cd keycloak-containers/server
   git checkout $VERSION
   docker build -t "jboss/keycloak:${VERSION}" .
   docker build -t "quay.io/keycloak/keycloak:${VERSION}" .
   ```
   
   I'm just creating this issue to document the workaround I found.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@airavata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [airavata-custos] machristie closed issue #381: Keycloak images fail to run on Apple Silicon (m1)

2023-05-02 Thread via GitHub


machristie closed issue #381: Keycloak images fail to run on Apple Silicon (m1)
URL: https://github.com/apache/airavata-custos/issues/381


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@airavata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[jira] [Commented] (AIRAVATA-3697) Handle unicode characters in file names

2023-05-02 Thread Marcus Christie (Jira)


[ 
https://issues.apache.org/jira/browse/AIRAVATA-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17718701#comment-17718701
 ] 

Marcus Christie commented on AIRAVATA-3697:
---

This fix also fixes an issue with uploading files with unicode filenames to the 
tus upload handler that results in a UnicodeDecodeError. (the problem is that 
the tus .json file is decoded as 'ascii' instead of utf8, because that's the 
default file system encoding.)

> Handle unicode characters in file names
> ---
>
> Key: AIRAVATA-3697
> URL: https://issues.apache.org/jira/browse/AIRAVATA-3697
> Project: Airavata
>  Issue Type: Bug
>  Components: Airavata API, Django Portal
>Reporter: Marcus Christie
>Assignee: Marcus Christie
>Priority: Major
> Attachments: Photophysical properties and photodegradation mechanism 
> of 2-(2′-furanyl)-1H-benzimidazole (Fuberidazole) - ScienceDirect.html
>
>
> Getting the following Django error when browsing experiment output files with 
> unicode characters in the file names:
> {code}
> Traceback (most recent call last):
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/rest_framework/views.py",
>  line 506, in dispatch
>response = handler(request, *args, **kwargs)
>  File 
> "/var/www/portals/django-seagrid/airavata-django-portal/django_airavata/apps/api/views.py",
>  line 1467, in get
>return self._create_response(request, experiment_id, path)
>  File 
> "/var/www/portals/django-seagrid/airavata-django-portal/django_airavata/apps/api/views.py",
>  line 1471, in _create_response
>directories, files = user_storage.list_experiment_dir(request, 
> experiment_id, path)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/api.py",
>  line 629, in list_experiment_dir
>backend=backend, owner=experiment.userName)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/api.py",
>  line 760, in _get_data_product_uri
>if user_file.exists():
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/models/query.py",
>  line 808, in exists
>return self.query.has_results(using=self.db)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/models/sql/query.py",
>  line 561, in has_results
>return compiler.has_results()
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/models/sql/compiler.py",
>  line 1145, in has_results
>return bool(self.execute_sql(SINGLE))
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/models/sql/compiler.py",
>  line 1175, in execute_sql
>cursor.execute(sql, params)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/backends/utils.py",
>  line 66, in execute
>return self._execute_with_wrappers(sql, params, many=False, 
> executor=self._execute)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/backends/utils.py",
>  line 75, in _execute_with_wrappers
>return executor(sql, params, many, context)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/backends/utils.py",
>  line 84, in _execute
>return self.cursor.execute(sql, params)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/db/backends/mysql/base.py",
>  line 73, in execute
>return self.cursor.execute(query, args)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/MySQLdb/cursors.py",
>  line 199, in execute
>args = tuple(map(db.literal, args))
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/MySQLdb/connections.py",
>  line 280, in literal
>s = self.string_literal(o.encode(self.encoding))
> During handling of the above exception ('utf-8' codec can't encode characters 
> in position 197-199: surrogates not allowed), another exception occurred:
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py",
>  line 47, in inner
>response = get_response(request)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/core/handlers/base.py",
>  line 181, in _get_response
>response = wrapped_callback(request, *callback_args, **callback_kwargs)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/views/decorators/csrf.py",
>  line 54, in wrapped_view
>return view_func(*args, **kwargs)
>  File 
> "/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/views/generic/base.py",
>  line 70, in view
>return 

[jira] [Closed] (AIRAVATA-3665) chacruna

2023-05-02 Thread Eroma (Jira)


 [ 
https://issues.apache.org/jira/browse/AIRAVATA-3665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eroma closed AIRAVATA-3665.
---
Resolution: Fixed

SPAM

> chacruna
> 
>
> Key: AIRAVATA-3665
> URL: https://issues.apache.org/jira/browse/AIRAVATA-3665
> Project: Airavata
>  Issue Type: Bug
>  Components: Airavata API
>Affects Versions: 0.15
>Reporter: shannoncarter
>Priority: Major
> Fix For: master
>
>
> Psychotria viridis belongs to the coffes household (Rubiaceae). It is a small 
> tree to 5 m high, often a shrub, with green twigs, the fallen leaves are 
> opposite, elliptic, blade to 15 cm long as well as 6 centimeters broad, shiny 
> as well as glabrous green over, pilose on the mother lodes below, secondary 
> (side) blood vessels 5-10 pairs with domatia in the capillary axils at 
> junction with the midrib; petiole short, 1-9 mm long; stipules interpetiolar, 
> ovate to obovate, 7-15 mm long, bilobed, sometimes consistent or deciduous on 
> distal 1-2 nodes. Inflorescence is incurable, glabrous, on a peduncle 1-10 cm 
> long, with typically 1 pair of basal branches concerning half as long as the 
> inflorescence, blossoms and also fruit in dense clusters of 3-8 spaced along 
> the branches as well as along the major inflorescence axis. Flowers are tiny, 
> sessile, corolla white, 1-2 mm long including the 5 wattles. Fruit created in 
> thick clusters, ripening purple-red, subglobose to ellipsoid, 4-6 mm long; 
> pyrenes 2, with 4-5 dorsal ridges. The Ancient individuals make use of juice 
> from the leaves as eye goes down to deal with migraine headaches. In shamans 
> and medicine men and women have actually utilized the leaves of this plant 
> for centuries to treat numerous ailments. Fallen leaves of P. viridis has 
> degrees differing from 0.1% to 0.61% dried out mass of dimethyltryptamine 
> (DMT). Various other alkaloids such as beta-carbolines and also 
> N-methyltryptamine (NMT) have been found. psychotria viridis is understood 
> primarily as an additive to the ayahuasca brew utilized in South as well as 
> Central region. The device of activity is via the monoamine oxidase inhibitor 
> (MAOI) present in Banisteriopsis caapi, which enables ayahuasca to be 
> efficient in oral dosages (unlike smoking DMT crystals which calls for no 
> conditioning partner compound). B. caapi, P. viridis, and the ayahuasca tea 
> were exempted from the listing of immoral drugs.Because of its all-natural 
> psychedelic effects, 
> [chacruna|https://mycotrop.com/it/smartshop/912-psychotria-viridis-chacruna.html]
>  adverse effects can trigger hallucinations, dizziness and also emotional 
> aggressiveness. When eaten as part of ayahuasca, chacruna adverse effects may 
> trigger nausea or vomiting and also vomiting. Speak with a qualified 
> herbalist prior to taking chacruna to deal with any type of condition.Other 
> chacruna health and wellness benefits come as a result of it being an 
> additive to different conventional medical concoctions. These other chacruna 
> health benefits consist of: Treating insect bites, specifically from fire 
> ants, Improving breathing as a rub-on expectorant, Alleviating congestion 
> brought on by lung infections or colds, Inducing vomiting in order to get rid 
> of transmittable parasites or microorganisms, Curing dysentery from a 
> chacruna root-based remedy.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)