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

False positive on media types #54

Open
anewton1998 opened this issue Jun 6, 2024 · 6 comments
Open

False positive on media types #54

anewton1998 opened this issue Jun 6, 2024 · 6 comments

Comments

@anewton1998
Copy link
Contributor

anewton1998 commented Jun 6, 2024

When running the tool against Aliyun, I am getting false positives for links with media types of "text/html" and "application/rdap+json".

java -jar tool/target/rdapct-1.0.4.jar -c tool/bin/rdapct-config.json -v --use-rdap-profile-february-2019 --gtld-registrar https://whois.aliyun.com/rdap/domain/haidiya.com
@jmoreira-ls
Copy link

Having locally built the tool (using the master branch and compiled with mvn -DskipTests package), I'm having the same issue. I also went through the download media types dataset and both text/html and application/rdap+json are present.

@anewton1998
Copy link
Contributor Author

I'm also seeing this against other registries.

@gbrodman
Copy link

For what it's worth, we're also seeing this as well -- it looks like the MediaTypes dataset is using the "name" attribute of each media type, pulling from the dataset located at https://www.iana.org/assignments/media-types/media-types.xml. For a standard HTML mime type, it looks like that "name" value is "html" instead of the valid MIME type "text/html"

@anewton1998
Copy link
Contributor Author

These false positives may be ignored using the config file in the v1.0.6 release .

@gbrodman
Copy link

These false positives may be ignored using the config file in the v1.0.6 release .

I don't think this is entirely the case, or to be more specific, I don't think it includes all error codes. I'm receiving the error code -12309, or to be more thorough:

"error": [{
    "code": -12309,
    "notes": "",
    "message": "The value for the JSON name value does not pass #/entities/1/remarks/0/links/0/type validation [stdRdapRemarksValidation].",
    "value": "#/entities/1/remarks/0/links/0/type:text/html"
}]

even with the new configuration, which makes sense because -12309 isn't ignored.

@anewton1998
Copy link
Contributor Author

Thanks. We'll try to add this to this list.

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

No branches or pull requests

3 participants